-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Nextcloud 14.0.0.19 The "Referrer-Policy" HTTP header is not set to "no-referrer" #11099
Comments
GitMate.io thinks possibly related issues are #8550 (The "X-Frame-Options" HTTP header is not set to "SAMEORIGIN".), #10604 (Nextcloud 14.0.0 beta3), #10624 (Nextcloud 14 Beta 3 The "Referrer-Policy" HTTP header is not set to "no-referrer"), #9122 (Add setupcheck for Referrer-Policy header), and #10208 (Testing Nextcloud 14.). |
Adding this line in your
However, to be exact, this is not a Nextcloud-related issue. The warning is just showing you a recommendation how to adjust your webserver configuration. |
@patschi Thank You, that works! |
For me this is a nextcloud bug in the .htaccess File. Please fix it in the next release. |
this warning continues to appear after each update, even if it was already fixed, it would not be possible to include this modification in the original .htaccess? |
Signed-off-by: Patrik Kernstock <info@pkern.at>
Signed-off-by: Patrik Kernstock <info@pkern.at>
…ferrer Add "Referrer-Policy" to htaccess file, addresses issue #11099
[stable14] Add "Referrer-Policy" to htaccess file, addresses issue #11099
Signed-off-by: Patrik Kernstock <info@pkern.at>
I add to .htaccess |
I also add to .htaccess but also not solve the problem |
Are you both using apache2 as your webserver, or something else like nginx, @rabadumpf and @linuxmangr? |
apache2 |
For some reason, in my case, it needed |
This works on nc14, on nc15.0.2 you will get this warning if you have the header set twice. Details: If you have: "add_header Referrer-Policy no-referrer always;" in your (nginx) reverse proxy as well, you will have two entrys of "referrer-policy: no-referrer" in your header and nc15 don't like this for some reason. I solved this by adding: "proxy_hide_header Referrer-Policy;" to the proxy part to remove one of the two entrys. |
I have For some reason I'm seeing the |
Yeah, in my case I had it 3 times in total:
Since I don't want to change 1, I changed 2 to |
Another hint - if in any of those configurations you have duplicated headers set, this will also pop up this warning. |
See also #10624
Have this issue too after upgrading from 13.0.6 to 14.0.0.19 on Ubuntu 18.04.lts server.
Any hints what to set in .htaccess ?
I actually have there
The text was updated successfully, but these errors were encountered: