Merge pull request #2014 from thelounge/yamanickill/2012-css-csp

Allow https css
This commit is contained in:
Pavel Djundik 2018-01-30 14:07:19 +02:00 committed by GitHub
commit 8f2caca6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,7 @@ function index(req, res, next) {
"default-src 'none'", // default to nothing "default-src 'none'", // default to nothing
"form-action 'none'", // no default-src fallback "form-action 'none'", // no default-src fallback
"connect-src 'self' ws: wss:", // allow self for polling; websockets "connect-src 'self' ws: wss:", // allow self for polling; websockets
"style-src 'self' 'unsafe-inline'", // allow inline due to use in irc hex colors "style-src 'self' https: 'unsafe-inline'", // allow inline due to use in irc hex colors
"script-src 'self'", // javascript "script-src 'self'", // javascript
"worker-src 'self'", // service worker "worker-src 'self'", // service worker
"child-src 'self'", // deprecated fall back for workers, Firefox <58, see #1902 "child-src 'self'", // deprecated fall back for workers, Firefox <58, see #1902