-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
X-Frame-Options header is deprecated #5977
Comments
We should probably starting setting a content-security-policy header. I would at least set it to An other option is to set this as a meta tag. It gives more visibility to users instead of hidden behind a function. |
looks like the https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors |
Thanks for double checking. That's one fewer question to ask then. :) |
Environment
Elixir version (elixir -v):
Erlang/OTP 27 [erts-15.1.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
Elixir 1.17.3 (compiled with Erlang/OTP 27)
Phoenix version (mix deps): phoenix 1.7.14
Operating system: MacOS 15.1 ARM
Firefox 132.0.2
Actual behavior
From MDN: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
X-Frame-Options
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Warning: Instead of this header, use the frame-ancestors directive in a Content-Security-Policy header.
The text was updated successfully, but these errors were encountered: