-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add resouce on how to integrate nuxt-security (#539)
- Loading branch information
1 parent
92f44bc
commit fc531e0
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |