The module still runs when dev is set to false.
miguel-a-calles-mba opened this issue · comments
Miguel A. Calles commented
I set the nuxt.config.js
file with the following settings:
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa',
[
'@dansmaculotte/nuxt-security',
{
dev: false,
csp: {
directives: {
defaultSrc: ["'self'"],
scriptSrc: ["'self'"],
connectSrc: ["'self'"],
imgSrc: ["'self'"],
styleSrc: ["'self'"]
},
loose: false,
reportOnly: false,
setAllHeaders: false,
disableAndroid: false,
browserSniff: true
},
}
]
],
The CSP headers still load when I use the npm run dev
command.
Gaël Reyrol commented
Hi, I cannot reproduce anymore what you are experiencing.
Romain TOUZE commented
Are you OK with my comment on your PR? Can I close this issue?
Miguel A. Calles commented
Please close it. I decided to use a different solution. Thank you.