Skip to content

Commit 0cbdc85

Browse files
committed
CSP: Allow more content types
1 parent 4238b9b commit 0cbdc85

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/config/default.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ module.exports = {
1818
reportUri: '',
1919
directives: {
2020
defaultSrc: ["'self'"],
21-
scriptSrc: ["'self'"],
22-
styleSrc: ["'self'", "'unsafe-inline'"],
23-
fontSrc: ["'self'"],
21+
scriptSrc: ["'self'", "'unsafe-eval'", "vimeo.com", "https://gist.github.com", "www.slideshare.net", "https://query.yahooapis.com", "https://*.disqus.com"],
22+
imgSrc: ["*"],
23+
styleSrc: ["'self'", "'unsafe-inline'", "https://assets-cdn.github.com"],
24+
fontSrc: ["'self'", "https://public.slidesharecdn.com"],
25+
objectSrc: ["*"],
26+
childSrc: ["*"],
27+
connectSrc: ["'self'", "https://links.services.disqus.com", "wss://realtime.services.disqus.com"]
2428
},
2529
upgradeInsecureRequests: 'auto'
2630
},

0 commit comments

Comments
 (0)