-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Issue because enforcing security header #6673
Comments
I have the same issue that all security related http headers are set twice, because I have a global webserver config which sets those headers, but nextcloud seems to append their own headers. The only known workaround for this would be to unset those headers in my webserver config for the nextcloud directory/subdomain. But this is an ugly workaround because now we're assuming that nextcloud sets these headers properly. |
Yes, that's not the 1st ticket about that, and it w'ont be the last. |
See also #8207 |
@blizzz @MorrisJobke @rullzer any clues? Shall we keep this issue? close? |
closing then |
Before reading further, i know this bug has already been reported, all have been close by "disable your header in security.conf".
Steps to reproduce
Load Admin page
Expected behaviour
No erreur at all
Actual behaviour
Get Warning about 3 headers X-XSS-Protection, X-Content-Type-Options, X-Frame-Options telling they are not set, but they are twice.
Issue discution
The issue is not only that they are set twice, but it's also the warning that it's said "not enabled".
It's twice because inserted once by my conf, and it need to be set for the many other hosted web apps that doesn't have your security concern, a because inserted dynamically in php by Nextcloud.
I've tried to change a bit my conf instead of a simple set, set a merge:
Header always set XXX XXX
becoming:
Header always merge XXX XXX
But it's not working.
So, i would like to know if it's do-able to not enforce by default the config (a check of the header before setting it as the same value).
Or if setting the header twice should still work, then make a smarter test and look if the needed value is present or at the end.
Yes i can insert some exception in my security.conf, like for nextcloud location do not set header, but this is dirty to set this kind of thing inside this kind of conf.
General server configuration
Operating system: Linux web2 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64
Web server: Apache (apache2handler)
Database: pgsql PostgreSQL 9.6.4 on x86_64-pc-linux-gnu, compiled by gcc (Debian 6.3.0-18) 6.3.0 20170516, 64-bit
PHP version: 7.0.19-1
PHP-modules loaded
Nextcloud configuration
Nextcloud version: 12.0.3 - 12.0.3.3
Updated from an older Nextcloud/ownCloud or fresh install: YOUR ANSWER HERE
Where did you install Nextcloud from: YOUR ANSWER HERE
Are you using external storage, if yes which one: Array
(
[0] => \OC\Files\Storage\Local
[1] => \OCA\Files_External\Lib\Storage\FTP
[2] => \OC\Files\Storage\DAV
[3] => \OCA\Files_External\Lib\Storage\OwnCloud
[4] => \OCA\Files_External\Lib\Storage\SFTP
[5] => \OCA\Files_External\Lib\Storage\AmazonS3
[6] => \OCA\Files_External\Lib\Storage\Dropbox
[7] => \OCA\Files_External\Lib\Storage\Google
[8] => \OCA\Files_External\Lib\Storage\Swift
[9] => \OCA\Files_External\Lib\Storage\SFTP
[10] => \OCA\Files_External\Lib\Storage\SMB
[11] => \OCA\Files_External\Lib\Storage\SMB
)
Are you using encryption: no
Are you using an external user-backend, if yes which one: YOUR ANSWER HERE (LDAP/ActiveDirectory/Webdav/...)
Signing status
Enabled apps
Disabled apps
Content of config/config.php
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Operating system: YOUR ANSWER HERE
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: