diff --git a/docs/content/v0.6/6.resources/6.nuxt-security b/docs/content/v0.6/6.resources/6.nuxt-security new file mode 100644 index 00000000..75258aa4 --- /dev/null +++ b/docs/content/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