Merge pull request #1975 from thelounge/xpaw/fix-1902

Fix enabling push notifications on Firefox
This commit is contained in:
Jérémie Astori 2018-01-13 13:14:33 -05:00 committed by GitHub
commit f8c66aa512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,7 @@ function index(req, res, next) {
"style-src 'self' 'unsafe-inline'", // allow inline due to use in irc hex colors
"script-src 'self'", // javascript
"worker-src 'self'", // service worker
"child-src 'self'", // deprecated fall back for workers, Firefox <58, see #1902
"manifest-src 'self'", // manifest.json
"font-src 'self' https:", // allow loading fonts from secure sites (e.g. google fonts)
"media-src 'self' https:", // self for notification sound; allow https media (audio previews)