Skip to content

Commit

Permalink
docs: Add resouce on how to integrate nuxt-security (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser authored Oct 11, 2023
1 parent 92f44bc commit fc531e0
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 fc531e0

Please sign in to comment.