Skip to content
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

Disable x-xss-protection by default #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

JaZo
Copy link
Contributor

@JaZo JaZo commented Mar 28, 2024

OWASP's recommendation is to use a Content Security Policy (CSP) that disables the use of inline JavaScript, and to not set the X-XSS-Protection header or explicitly turn it off.

WARNING: Even though this header can protect users of older web browsers that don't yet support CSP, in some cases, this header can create XSS vulnerabilities in otherwise safe websites source.

https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#x-xss-protection

OWASP's recommendation is to use a Content Security Policy (CSP) that disables the use of inline JavaScript, and to not set this header or explicitly turn it off.

See: https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#x-xss-protection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant