fix(csp): allow unsafe-eval for HEIC image conversion
This commit is contained in:
parent
5b710a429a
commit
93b51a0bf5
@ -122,7 +122,7 @@ export function createApp(): express.Application {
|
|||||||
contentSecurityPolicy: {
|
contentSecurityPolicy: {
|
||||||
directives: {
|
directives: {
|
||||||
defaultSrc: ["'self'"],
|
defaultSrc: ["'self'"],
|
||||||
scriptSrc: ["'self'", "'wasm-unsafe-eval'"],
|
scriptSrc: ["'self'", "'wasm-unsafe-eval'", "'unsafe-eval'"],
|
||||||
styleSrc: ["'self'", "'unsafe-inline'", "https://fonts.googleapis.com", "https://unpkg.com"],
|
styleSrc: ["'self'", "'unsafe-inline'", "https://fonts.googleapis.com", "https://unpkg.com"],
|
||||||
imgSrc: ["'self'", "data:", "blob:", "https:"],
|
imgSrc: ["'self'", "data:", "blob:", "https:"],
|
||||||
connectSrc: [
|
connectSrc: [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user