Open jbouter opened 1 year ago
Hi, which nc version?
Hi @szaimen! Version is 25.0.4
I am just getting set up and am already unsetting it in my web server layer. So for me the recommendation to add it back is just obnoxious.
Instead of setting it to 0, it should simply not be set.
This is bending this issue a little bit. Remove the whole thing instead of just the warning. I wouldn't remove the in-your-face part until the underlying problem is fixed.
Adding the MDN docs to this ~
These protections are largely unnecessary in modern browsers when sites implement a strong Content-Security-Policy that disables the use of inline JavaScript ('unsafe-inline').
Warning: Even though this feature can protect users of older web browsers that don't yet support CSP, in some cases, XSS protection can create XSS vulnerabilities in otherwise safe websites.
addSecurityHeaders
And also
Still relevant for v26.0.4
Still relevant for: v27.1.3
Still relevant for v28.0.5.1 :)
And still for v29.0.1
Nextcloud still set this header automatically (See: Nextcloud Documentation ) and show the warning if you overwrite it with your webserver. Its deprecated and Nextcloud should not set this header.
Still relevant
⚠️ This issue respects the following points: ⚠️
Bug description
The Nextcloud administration page shows the following warning:
However, the
X-XSS-Protection
header is deprecated. OWASP recommends you remove the header from your webserverIt shows the following warning when the header is used:
Steps to reproduce
X-XSS-Protection
headerExpected behavior
Do not show this recommendation, and possibly advice users to unset the HTTP header in order to inform them of its deprecation.