Fix image and plugin CSP
This commit is contained in:
parent
217ffacfdd
commit
ebe7f58726
|
@ -7,8 +7,8 @@ const baseDirectives = Object.assign({},
|
||||||
connectSrc: ['*', 'data:'],
|
connectSrc: ['*', 'data:'],
|
||||||
mediaSrc: ["'self'", 'https:', 'blob:'],
|
mediaSrc: ["'self'", 'https:', 'blob:'],
|
||||||
fontSrc: ["'self'", 'data:'],
|
fontSrc: ["'self'", 'data:'],
|
||||||
imgSrc: ["'self'", 'data:'],
|
imgSrc: ["'self'", 'data:', 'blob:'],
|
||||||
scriptSrc: ["'self' 'unsafe-inline' 'unsafe-eval'"],
|
scriptSrc: ["'self' 'unsafe-inline' 'unsafe-eval'", 'blob:'],
|
||||||
styleSrc: ["'self' 'unsafe-inline'"],
|
styleSrc: ["'self' 'unsafe-inline'"],
|
||||||
objectSrc: ["'none'"], // only define to allow plugins, else let defaultSrc 'none' block it
|
objectSrc: ["'none'"], // only define to allow plugins, else let defaultSrc 'none' block it
|
||||||
formAction: ["'self'"],
|
formAction: ["'self'"],
|
||||||
|
|
Loading…
Reference in New Issue