diff --git a/content/2.nuxt-auth/v0.6/6.resources/6.nuxt-security b/content/2.nuxt-auth/v0.6/6.resources/6.nuxt-security new file mode 100644 index 0000000..75258aa --- /dev/null +++ b/content/2.nuxt-auth/v0.6/6.resources/6.nuxt-security @@ -0,0 +1,19 @@ +--- +description: "How to integrate nuxt-security with nuxt-auth" +--- + +In order to use the [NuxtSecurity](https://nuxt.com/modules/security) module with Nuxtauth, please use the following config, to disable the checks on the NuxtAuth routes: + +```js{}[nuxt.config.ts] +export default defineNuxtConfig({ + routeRules: { + "/api/auth/**": { + security: { + xssValidator: false, + }, + }, + } +} +``` + +Solution provided by [tmlmt](https://github.com/tmlmt) in https://github.com/sidebase/nuxt-auth/issues/324#issuecomment-1757010620