1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 21:30:05 +00:00

fix: csp updates

This commit is contained in:
Allan Bowe
2022-05-11 21:37:49 +00:00
parent 45a2a01532
commit 7cfa2398e1
3 changed files with 5 additions and 3 deletions

View File

@@ -5,7 +5,9 @@ export const getEnvCSPDirectives = (
HELMET_CSP_CONFIG_PATH: string | undefined
) => {
let cspConfigJson = {
'script-src': ["'self'", "'unsafe-inline'"]
'img-src': ["'self'", "data:"],
'script-src': ["'self'", "'unsafe-inline'"],
'script-src-attr': ["'self'", "'unsafe-inline'"]
}
if (