From fc531e00bd717b5376350ce59791b965ae0e2ecc Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 11 Oct 2023 10:08:37 +0200 Subject: [PATCH] docs: Add resouce on how to integrate nuxt-security (#539) --- docs/content/v0.6/6.resources/6.nuxt-security | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/content/v0.6/6.resources/6.nuxt-security 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