Bug Tracker

Ticket #14422 (closed bug: fixed)

Opened 23 months ago

Last modified 22 months ago

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:
Blocking: Blocked by:


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

comment:1 Changed 23 months 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 22 months ago by markelog

  • Priority changed from undecided to low
  • Resolution set to fixed
  • Status changed from new to closed
  • Component changed from unfiled to support
  • Milestone changed from None to 1.11
Note: See TracTickets for help on using tickets.