Having more secure Nuxt project is only one command away ✨
nuxt-security
module:yarn add --dev nuxt-security
export default defineNuxtConfig({ modules: ['nuxt-security']})
nuxt-security
here.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.