diff options
Diffstat (limited to '')
-rw-r--r-- | middlewares/helmet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middlewares/helmet.js b/middlewares/helmet.js index 5ced2c3..67d6e98 100644 --- a/middlewares/helmet.js +++ b/middlewares/helmet.js @@ -1,10 +1,10 @@ -import helmet from "helmet"; +import helmet from 'helmet'; const myHelmet = helmet({ contentSecurityPolicy: { directives: { ...helmet.contentSecurityPolicy.getDefaultDirectives(), - "script-src": ["'self'", "'unsafe-inline'"], + 'script-src': ['\'self\'', '\'unsafe-inline\''], }, }, }); |