summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-03-26 14:51:09 +0200
committerGitHub2018-03-26 14:51:09 +0200
commit5d57a4bb6f126e327d576d34e489d479326fb4e2 (patch)
tree0d7a9246b238134cf883167e33a653c1f3886e8e /lib
parent6a4350af2bc185374671f36970e1aef8b7d9ac93 (diff)
parent450262c4ab6519fec3943e1d19bd48f78f8a8713 (diff)
Merge pull request #779 from SISheogorath/fix/cspForVideo
Allow embedding of video and audio tags
Diffstat (limited to '')
-rw-r--r--lib/csp.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/csp.js b/lib/csp.js
index cef2e2f6..8a4aa088 100644
--- a/lib/csp.js
+++ b/lib/csp.js
@@ -11,6 +11,7 @@ var defaultDirectives = {
styleSrc: ['\'self\'', '\'unsafe-inline\'', 'https://assets-cdn.github.com'], // unsafe-inline is required for some libs, plus used in views
fontSrc: ['\'self\'', 'https://public.slidesharecdn.com'],
objectSrc: ['*'], // Chrome PDF viewer treats PDFs as objects :/
+ mediaSrc: ['*'],
childSrc: ['*'],
connectSrc: ['*']
}