Why can't I disable X-Frame-Options or use CSP instead?
Can I define my own security policy regarding what frames my auth can run in?
Is X-frame-options set on FusionAuth's web server or is it set inside the app? When I request the root auth page, it shows the header set to deny.
I've read the CORS page and seen a possibly related issue (https://github.com/FusionAuth/fusionauth-issues/issues/335). I'd rather set a trusted domain than have to rewrite a 3rd party tool that uses our app in an iframe. I don't see anything that says this is possible.
I appreciate any help with this matter!
dan last edited by
I'm going to assume you are using the FusionAuth hosted login pages and are trying to complete an OAuth grant. If you are trying to do something different, please let me know.
X-Frame-Optionsheader is set to
DENYin the application. If you set a "Authorized Origin" URLs, either via the
application.oauthConfiguration.authorizedOriginURLssetting in the API or by navigating to "Applications" -> "My Application" -> "OAuth" and adding the urls there.
You can, of course, proxy FusionAuth using something like nginx and tweak the headers there.
If you'd like to be able to set a CSP for FusionAuth directly, please file a github issue with this feature request: https://github.com/fusionauth/fusionauth-issues/issues
Thank you for the feedback, @dan !
I was able to add URLs via "Applications" -> "My Application" -> "OAuth" which made the DENY go away. However, now, no one can log in. It just redirects back to the login. I am not sure if it is the same issue as this since it does not go through an HTTP url.
Although I am testing from a browser, the other issue is that the frame is embedded in a desktop application. It doesn't use a an "http" origin url which means I cannot add it as an authorized origin.
Would this mean proxy is the only option we have?
dan last edited by
Hmmm. What kind of URL would you want? I know we support other kinds of URLs in other fields, so perhaps we need to relax that constraint.
However, now, no one can log in.
Are you iframing out the login pages and still having trouble?