fpapado / csp-strict-dynamic-external-script-hash

Minimal reproduction for external script loading (via the integrity attribute) when strict-dynamic is present in the script-src directive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSP: External script hashes with strict-dynamic present in script-src

Minimal reproduction for external script loading (via the integrity attribute) when strict-dynamic is present in the script-src directive.

Instructions

You will need node installed, or a way to serve index.html and externalScript.js.

If you have node:

npx serve

Testing

  • Open your browser to http://localhost:3000
  • Expect to see no CSP error logged, either on screen or in the console

About

Minimal reproduction for external script loading (via the integrity attribute) when strict-dynamic is present in the script-src directive.


Languages

Language:HTML 98.0%Language:JavaScript 2.0%