diff options
author | Literallie | 2017-10-18 22:44:16 +0200 |
---|---|---|
committer | Literallie | 2017-10-22 00:03:45 +0200 |
commit | 0cbdc852cb29bfcadf1229899938c757b03f5ed6 (patch) | |
tree | 395974334f59d162688720e2cf0187a5c7b46b4d /lib | |
parent | 4238b9b3efc3a9c001b5e1cf6c1883ffd0f92800 (diff) |
CSP: Allow more content types
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config/default.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index 217d11d0..0b6ca26a 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -18,9 +18,13 @@ module.exports = { reportUri: '', directives: { defaultSrc: ["'self'"], - scriptSrc: ["'self'"], - styleSrc: ["'self'", "'unsafe-inline'"], - fontSrc: ["'self'"], + scriptSrc: ["'self'", "'unsafe-eval'", "vimeo.com", "https://gist.github.com", "www.slideshare.net", "https://query.yahooapis.com", "https://*.disqus.com"], + imgSrc: ["*"], + styleSrc: ["'self'", "'unsafe-inline'", "https://assets-cdn.github.com"], + fontSrc: ["'self'", "https://public.slidesharecdn.com"], + objectSrc: ["*"], + childSrc: ["*"], + connectSrc: ["'self'", "https://links.services.disqus.com", "wss://realtime.services.disqus.com"] }, upgradeInsecureRequests: 'auto' }, |