You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x-xss-protection should default to 0 (not 1; mode=block) #4327
They both recommend disabling this header by default (i.e., setting it to 0). Can I ask you to revisit this decision and make this recommended change this time?
And when this is done, it should set the header to: x-xss-protection: 0 (rather than simply dropping the header entirely).
Looks good to me. But I'm not much of a JavaScript expert. You might want to add a comment near the default is '0' explanation to say 'as recommended by OWASP (with link)', or whatever, to provide a bit of rationale in the code.
Activity
devinivy commentedon Feb 17, 2022
We'll take this under consideration for the next major version of hapi 👍
devinivy commentedon Apr 29, 2022
I have made a PR for this, and your review is welcomed on it @davewichers: #4352.
davewichers commentedon Apr 29, 2022
Looks good to me. But I'm not much of a JavaScript expert. You might want to add a comment near the default is '0' explanation to say 'as recommended by OWASP (with link)', or whatever, to provide a bit of rationale in the code.
devinivy commentedon Nov 7, 2022
Resolved with v21 #4386