Skip to content

chore: remove deprecated x-frame-options header#262

Open
edevosc2c wants to merge 1 commit intomainfrom
x-frame-options-removal
Open

chore: remove deprecated x-frame-options header#262
edevosc2c wants to merge 1 commit intomainfrom
x-frame-options-removal

Conversation

@edevosc2c
Copy link
Copy Markdown
Member

Remove/Disable x-frame-options because it is deprecated: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options

As per explained by the MDN doc, one should instead configure the iframe policy using the Content Security Policy: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors

The benefit is that through the CSP, one can allow multiple website to load the iframe from. Whereas with x-frame-options you are limited to only one website.

The removal also makes it easier for the final application (GeoServer, Geonetwork, ...) to handle this case itself through the CSP if needed. Thus, not relying on the GW to set the iframe permissions.

Security wise, it allows the iframe to be controlled per component and not on all applications (can be a security issue for the geOrchestra console for example).

@pmauduit pmauduit changed the title chore: remove x-frame-options deprecated chore: remove deprecated x-frame-options header Mar 25, 2026
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