Having more secure Nuxt project is only one command away ✨
nuxt-security module:yarn add --dev nuxt-securityexport default defineNuxtConfig({ modules: ['nuxt-security']})This module is meant to work with SSR apps but you can also use this module in SSG apps where you will get a Content Security Policy (CSP) support.
You can add global configuration to the module like following:
export default defineNuxtConfig({ security: { // options }})Or per route configuration described here
nuxt-securityhere.