Skip to content

Commit

Permalink
miscweb: add more CSP exceptions for demos.jquerymobile.com
Browse files Browse the repository at this point in the history
- script-src: load scripts from code.jquery.com
- style-src: allow some inline styles on certain pages
  • Loading branch information
timmywil committed Nov 30, 2024
1 parent b8f77ae commit 49b9689
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hieradata/environments/production/roles/miscweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ profile::miscweb::sites:
branch: main
allow_php: true
# script-src: unsafe-eval for syntax highlighting on all pages
# script-src: load scripts from code.jquery.com
# img-src: data: for inline SVGs
# style-src|font-src: load fonts from Google Fonts
csp_header: default-src 'self'; script-src 'self' 'unsafe-eval'; img-src 'self' data:; style-src 'self' fonts.googleapis.com; font-src 'self' fonts.gstatic.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
# style-src: unsafe-inline for supports tests in
# jQuery 1.7.3 and jQuery Mobile 1.3.0
csp_header: default-src 'self'; script-src 'self' 'unsafe-eval' code.jquery.com; img-src 'self' data:; style-src 'self' 'unsafe-inline' fonts.googleapis.com; font-src 'self' fonts.gstatic.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
podcast.jquery.com:
repository:
name: jquery/podcast.jquery.com
Expand Down

0 comments on commit 49b9689

Please sign in to comment.