dansmaculotte / nuxt-security

Module for Nuxt.js to configure security headers and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The module still runs when dev is set to false.

miguel-a-calles-mba opened this issue · comments

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.

Hi, I cannot reproduce anymore what you are experiencing.

Are you OK with my comment on your PR? Can I close this issue?

Please close it. I decided to use a different solution. Thank you.