diff options
author | hackademix | 2018-08-27 00:31:37 +0200 |
---|---|---|
committer | hackademix | 2018-08-27 18:55:00 +0200 |
commit | e2b63cf98204a45f4c55ba446689d20e524c188c (patch) | |
tree | fa9739889307b55777d4b48326bbad38136dabf0 /src/lib | |
parent | 6e80d3f130773fc9a9123c5c4c2e97d63e90fa2a (diff) | |
download | noscript-e2b63cf98204a45f4c55ba446689d20e524c188c.tar.gz noscript-e2b63cf98204a45f4c55ba446689d20e524c188c.tar.xz noscript-e2b63cf98204a45f4c55ba446689d20e524c188c.zip |
Further CSP refactoring and removal of obsolete fallbacks.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/CSP.js | 1 | ||||
-rw-r--r-- | src/lib/NetCSP.js | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/CSP.js b/src/lib/CSP.js index 8550f09..79590bc 100644 --- a/src/lib/CSP.js +++ b/src/lib/CSP.js @@ -19,4 +19,5 @@ class CSP { } } +CSP.isEmbedType = type => /\b(?:application|video|audio)\b/.test(type); CSP.headerName = "content-security-policy"; diff --git a/src/lib/NetCSP.js b/src/lib/NetCSP.js index cb79a80..90ef8ad 100644 --- a/src/lib/NetCSP.js +++ b/src/lib/NetCSP.js @@ -27,4 +27,6 @@ class NetCSP extends CSP { return `${this.start}${super.build(...directives)}${this.end}`; } + cleanup(headers) { + } } |