bepsvpt / secure-headers

PHP Secure Headers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Error parsing header in Chrome Console

Kokil opened this issue · comments

commented

Error parsing header X-XSS-Protection: 1; mode=block, 1; mode=block: expected semicolon at character position 13. The default protections will be applied.

Hi @Kokil,

What value did you set for X-XSS-Protection?

commented

Hi @bepsvpt,
This is what i set
'x-xss-protection' => '1; mode=block',

symfony/symfony#30134

I found this issue is same error message as you provide. Did you send X-XSS-Protection header in other place? Like Nginx or Apache.

commented

No, I haven't

Could you use browser developer tools to see the value of X-XSS-Protection?

commented

Yes, you are right. I got double X-XSS-Protection.

If you have any further question, feel free to open a new issue.