Skip to content

Commit 1ebc2c5

Browse files
committed
Allow blob: in img-src CSP
1 parent 1fcab5a commit 1ebc2c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Framework/Backend/http/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class HttpServer {
156156
directives: {
157157
/* eslint-disable */
158158
defaultSrc: ["'self'", "data:", hostname + ':*'],
159+
imgSrc: ["'self'", "data:", "blob:"],
159160
scriptSrc: ["'self'", ...(allow ? ["'unsafe-eval'"] : [])],
160161
styleSrc: ["'self'", "'unsafe-inline'"],
161162
connectSrc: ["'self'", 'http://' + hostname + ':' + port, 'https://' + hostname, 'wss://' + hostname, 'ws://' + hostname + ':' + port],

0 commit comments

Comments
 (0)