Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow kurl proxy iframe from same origin #4682

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

cbodonnell
Copy link
Contributor

@cbodonnell cbodonnell commented Jun 13, 2024

What this PR does / why we need it:

Updates the CSP headers for kurl proxy to permit same origin iframing to support the upgrade service. With the previous configuration, the upgrade service modal would fail to load when accessed through kurl-proxy with errors like:

Refused to frame 'https://127.0.0.1:30880/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".

This is a modification to changes made as part of: https://app.shortcut.com/replicated/story/70585/kots-clickjacking-security-vulnerability

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?


Does this PR require documentation?

@cbodonnell cbodonnell changed the base branch from main to kots-upgrader June 13, 2024 18:10
@cbodonnell cbodonnell changed the title allow kurl proxy iframe allow kurl proxy iframe from same origin Jun 13, 2024
@cbodonnell cbodonnell merged commit bb1c47c into kots-upgrader Jun 13, 2024
24 of 26 checks passed
@cbodonnell cbodonnell deleted the cbo/allow-kurl-proxy-iframe branch June 13, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants