summaryrefslogtreecommitdiff
path: root/src/lib/CSP.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/CSP.js')
-rw-r--r--src/lib/CSP.js1
1 files changed, 1 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";