Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser authored Oct 11, 2023
2 parents e4949a3 + fc531e0 commit f9681c6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/content/v0.6/6.resources/6.nuxt-security
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f9681c6

Please sign in to comment.