Fix #1902 - unable to enable push notifications on Firefox 57

This commit is contained in:
Pavel Djundik 2018-01-12 12:04:04 +02:00
parent 3eb017caf8
commit 8d0bdfc200

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 "style-src 'self' '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
"manifest-src 'self'", // manifest.json "manifest-src 'self'", // manifest.json
"font-src 'self' https:", // allow loading fonts from secure sites (e.g. google fonts) "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) "media-src 'self' https:", // self for notification sound; allow https media (audio previews)