NuxtN
Nuxt6mo ago
4 replies
Ivan

nuxt-security. strict-transport-security

Hello.
I found an error in the module related to the "strict-transport-security" header setting.

When checking the site settings, an "Invalid syntax" error occurs.

  security: {
    headers: {
      contentSecurityPolicy: {
        'img-src': ["'self'", 'data:'],
      },
      strictTransportSecurity: {
        maxAge: 63072000,
        includeSubdomains: true,
        preload: true,
      },
      permissionsPolicy: {
        geolocation: ['self'],
      },
    },
  },


Can someone tell me about the problem and how to solve it?
9ce4270758862f74.png
Was this page helpful?