1 define(["prism/prism"], function () {
3 * Original by Scott Helme.
5 * Reference: https://scotthelme.co.uk/csp-cheat-sheet/
7 * Supports the following:
13 Prism
.languages
.csp
= {
15 pattern
: /\b(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|script|style|worker)-src|disown-opener|form-action|frame-ancestors|plugin-types|referrer|reflected-xss|report-to|report-uri|require-sri-for|sandbox|upgrade-insecure-requests)\b/i,
19 pattern
: /'(?:self|none|strict-dynamic|(?:nonce-|sha(?:256|384|512)-)[a-zA-Z\d+=/]+)'/,
23 pattern: /(?:'unsafe
-inline
'|'unsafe
-eval
'|'unsafe
-hashed
-attributes
'|\*)/,