From 454402de8914bb5c24fd596f06d8fc693d66940c Mon Sep 17 00:00:00 2001 From: sideborg Date: Wed, 11 Oct 2023 08:08:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'content/2.nuxt?= =?UTF-8?q?-auth/'=20with=20remote=20'docs/content/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v0.6/6.resources/6.nuxt-security | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 content/2.nuxt-auth/v0.6/6.resources/6.nuxt-security 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