Skip to content

Instantly share code, notes, and snippets.

@evilpacket
Created June 25, 2013 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilpacket/5856305 to your computer and use it in GitHub Desktop.
Save evilpacket/5856305 to your computer and use it in GitHub Desktop.
CSP and FF 21.0
So on FF 21.0 I set the following header X-Content-Security-Policy I get the following error message in the console.
```
The X-Content-Security-Policy and X-Content-Security-Report-Only headers will be deprecated in the future. Please use the Content-Security-Policy and Content-Security-Report-Only headers with CSP spec compliant syntax instead.
```
If I set the Content-Security-Policy header it does not honor the policy.
Additionally report only does not appear to work at all in FF 21.0
I tried to set all the following variants with no success in getting it to report to report-uri: "/report"
- X-Content-Security-Report-Only (as specified in the error msg)
- X-Content-Security-Policy-Report-Only
- Content-Security-Report-Only
- Content-Security-Policy-Report-Only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment