You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nextcloud complains if X-Frame-Options is too 'secure' #3808
Configure your webserver to serve x-frame-options:"DENY"
Open Nextcloud administration page.
Expected behaviour
If frames are used/required by Nextcloud, so that this option must be SAMEORIGIN, report this as a compatibility error or so and let the admin decrease the "strength" of this header.
If not, just don't complain.
Actual behaviour
Nextcloud complains that the header should be SAMEORIGIN and reports this as a "security risk". This is clearly a wrong claim.
Server configuration
Web server: nginx
Nextcloud version: 11.0.2
Updated from an older Nextcloud/ownCloud or fresh install: fresh
While not a security risk we don't support DENY. This breaks some features built-in with Nextcloud. So one can add another error message here, but we can't just display nothing.
The "{header}" HTTP header is not configured to equal to "{expected}". This is a potential security or privacy risk and we recommend adjusting this setting.
What do you think about the DENY message to be
The "{header}" HTTP header is not configured to equal to "{expected}". Some features might not work correctly and we recommend adjusting this setting.
This message can optionally be used for other headers as well. It will only require a small change and I can provide a patch for this change.
The "X-Frame-Options" HTTP header is not configured to equal to "SAMEORIGIN". This is a potential security or privacy risk and we recommend adjusting this setting.
However, if I perform curl -I <NC server instance>, the x-frame-options header is present, and set to "SAMEORIGIN"
I upgraded from NC11 to NC12, this is a new "error" for me.
EDIT: Found the solution in issue #4605. Disregard this comment.
Activity
nickvergessen commentedon Mar 13, 2017
@LukasReschke please confirm
LukasReschke commentedon Mar 13, 2017
While not a security risk we don't support
DENY. This breaks some features built-in with Nextcloud. So one can add another error message here, but we can't just display nothing.rugk commentedon Mar 13, 2017
Yeah, I also noticed it break with
DENY.coderkun commentedon May 13, 2017
All security messages have currently the format
What do you think about the DENY message to be
This message can optionally be used for other headers as well. It will only require a small change and I can provide a patch for this change.
rugk commentedon May 13, 2017
Yes, that sounds very good.
grawlinson commentedon Aug 25, 2017
Am currently getting this error message:
The "X-Frame-Options" HTTP header is not configured to equal to "SAMEORIGIN". This is a potential security or privacy risk and we recommend adjusting this setting.However, if I perform
curl -I <NC server instance>, the x-frame-options header is present, and set to "SAMEORIGIN"I upgraded from NC11 to NC12, this is a new "error" for me.
EDIT: Found the solution in issue #4605. Disregard this comment.
Merge pull request #4856 from coderkun/issue-3808-xframe-deny
MorrisJobke commentedon Nov 14, 2017
Fixed in #4856