Skip to content

Commit

Permalink
chore: disable x-xss-protection by default (#88)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JaZo authored Oct 13, 2024
1 parent 4be9615 commit 3229c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/secure-headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
* Available Value: '1', '0', '1; mode=block'
*/

'x-xss-protection' => '1; mode=block',
'x-xss-protection' => '',

/*
* Referrer-Policy
Expand Down

0 comments on commit 3229c4a

Please sign in to comment.