index.js: Add "data:" as an allowed image source in CSP

Signed-off-by: Aaron <admin@datahoarder.dev>
This commit is contained in:
Aaron 2021-04-21 21:40:15 +02:00 committed by GitHub
parent 352fba6302
commit f5bb74e921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module.exports = function(app) {
"'self'",
config.base_url.replace(/^https:\/\//, 'wss://')
],
imgSrc: ["'self'"],
imgSrc: ["'self'", "data:"],
scriptSrc: [
"'self'",
function(req) {