Bug Tracker

Opened 10 years ago

Closed 10 years ago

#14422 closed bug (fixed)

CSP violation including jquery in a blank page

Reported by: daniel@… Owned by:
Priority: low Milestone: 1.11
Component: support Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


To reproduce: Using Firefox 24.0, open the network console then load http://jquerybugs [dot] herokuapp [dot] com

Expected: Page loads with no CSP error reports. Actual: Console contains a CSP error.

The error message in this case is: [14:17:30.891] Content Security Policy: Directive inline script base restriction violated

Impact: Sites using JQuery cannot effectively use the CSP report violation feature to roll out CSP, because all visitors will trigger a CSP error.

E.G. if I changed the CSP header to use:

Content-Security-Policy-Report-Only default-src 'self'; report-uri '/csp_report'

every visitor to the page would report CSP violations due to JQuery.

Change History (2)

comment:1 Changed 10 years ago by daniel@…

I setup a separate site for the testcase because it only works if you set the Content-Security-Policy header, which most hosts won't allow due to the obvious security implications.

Akismet won't allow me to link to the actual test case (calls outbound links to unknown domains spam) so you'll have to reconstruct the url.

comment:2 Changed 10 years ago by markelog

Component: unfiledsupport
Milestone: None1.11
Priority: undecidedlow
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.