-
-
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
False Referrer-Policy warning after upgrade to Nextcloud 15 #12513
Comments
GitMate.io thinks possibly related issues are #4908 (Problem upgrading NextCloud), #11202 (Nextcloud 14 Upgrade issue. ), #5599 (Contacts duplicate after upgrade to Nextcloud 12.0), #12507 (App Page not available after Upgrade to 15 Beta 2), and #12497 (Update with updater from Nextcloud 15 Beta 1 to Beta 2 not possible). |
This issue also shows up on another instance after upgrade from 14.03 to 14.04. |
Just upgraded to 14.04 and found this warning. Once I commented it out from my vhost file, the warning went away: Apache/2.4.25 (Debian)
I've left the defaults intact in the NextCloud .htaccess:
Perhaps having both caused a conflict? |
I had this issue as well after upgrading from 14.03 to 14.04. And it was fixed for me as well by removing one of the header directives (either the one in my sites.conf or the one in .htaccess). While inspecting the issue I found out that setting the directives in two places causes Apache to send the header twice. So Nextcloud probably gets confused when that header is present multiple times. |
I can confirm that the behavior has been introduced for 14.04 and persists for 15 RC1. |
Can confirm this is an issue on Nextcloud 14.04 as well. |
I can confirm @Scindix finding. Identical header settings on two different locations (apache conf file /.htaccess) was causing the trouble. |
See also nextcloud/documentation#674 and #8207 |
This is also true for stable 14.0.6 release. Referrer policy is set to no-referrer. The website Security Headers correctly identifies the referrer policy has been configured, but "Security & setup warnings" warning from nextcloud incorrectly reports that referrer policy is not set. |
As I understand it now, it is no longer recommended to configure the referrer policy in the apache-config (according to the Nextcloud 15 docs) because the htaccess takes care of it. Is this correct? Then this issue should be closed I think. |
In my particular case I am running Lighttpd with now, nextcloud stable version 15.0.5, so the .htaccess would not help. The warning, The "Referrer-Policy" HTTP header is still displayed on the Settings->Administration->Overview Screen. |
Header is set by nextcloud. If you set the header with your lighttpd remove it there. |
I can confirm that now removing the header from the lighttpd .conf file does indeed remove the warning. Thank You. |
Steps to reproduce
Expected behaviour
No warnings are shown (like in 14.03 pre-upgrade)
Actual behaviour
Referrer-Policy warning shows up, although it has been set to "strict-origin".
This false warning has also been shown with Beta 1 but not for 14.03.
Changing the configuration to the newly implemented same-origin does not make a difference for Beta 2 but for 14.03 since
Server configuration
Operating system: Ubuntu 16.04.5
Web server: Apache/2.4.18
Database: 10.0.36-MariaDB
PHP version: 7.0.32-0ubuntu0.16.04.1
Nextcloud version: 15.0.0 beta 2
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Where did you install Nextcloud from:
List of activated apps:
App list
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here.
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
XXXXXX"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "httpsXXXX",
"htaccess.RewriteBase": "/",
"dbtype": "mysql",
"version": "15.0.0.6",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"memcache.local": "\OC\Memcache\APCu",
"mail_smtpmode": "sendmail",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"updater.release.channel": "beta",
"skeletondirectory": "/var/www/default-files",
"maintenance": false,
"loglevel": 2,
"theme": "",
"updater.secret": "REMOVED SENSITIVE VALUE"
}
}
Are you using external storage, if yes which one: local
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox 63.0
Operating system: Ubuntu 18.04.01
The text was updated successfully, but these errors were encountered: