From e2b63cf98204a45f4c55ba446689d20e524c188c Mon Sep 17 00:00:00 2001 From: hackademix Date: Mon, 27 Aug 2018 00:31:37 +0200 Subject: Further CSP refactoring and removal of obsolete fallbacks. --- src/lib/CSP.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/CSP.js') 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"; -- cgit v1.2.3