I just installed Nextcloud 16.0.1.1 and everything works fine. No error messages. I then ran a security scan at https://scan.nextcloud.com and 1 problem popped up. __Host-Prefix has a red “x” beside it and says “The __Host prefix mitigates cookie injection vulnerabilities within potential third-party software sharing the same second level domain. It is an additional hardening on top of ‘normal’ same-site cookies.”
My url is https://nextcloud.domain.com
Nextcloud is stored in /var/www/nextcloud
I’m running LAMP (Ubuntu 18.04) fully up-to-date
I’ve looked this up on Google and tried numerous fixes but none of them work, plus they are all for older versions of Nextcloud. Anyone know how to get __Host-Prefix to pass on the nextcloud security scan?
I’ve tried …
Header always set Referrer-Policy “no-referrer”
Header always set Strict-Transport-Security “max-age=31536000; includeSubDomains; preload”
You’ve linked me to a post telling me to remove alias from my Apache configuration yet I stated in my original post that I had already tried that. I tried it again but again I got the same error message from the scan.
My issue was that additional to Alias I have had conf for the nextcloud folder as separate file (nextcloud.conf), that I have to remove. That was no aliases in my VirtualHost configuration:
If it does not work, could you please provide you Apache2 configuration here?
Sent only to the host which set the cookie. That is, a cookie
named “__Host-cookie1” set from “https://example.com” MUST NOT
contain a “Domain” attribute (and will therefore be sent only to
“example.com”, and not to “subdomain.example.com”).
Should be relevant for your case as soon as you are using nextcloud.domain.com