Skip to content

Commit 93e5dc2

Browse files
authored
Merge pull request #652 from kouts/fix/issue-651_enable_per_route_csrf_config
fix(csrf): add csrf config to routeRules
2 parents 39369db + 44c4960 commit 93e5dc2

File tree

12 files changed

+523
-1
lines changed

12 files changed

+523
-1
lines changed

playground/nuxt.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export default defineNuxtConfig({
3535
rateLimiter: false
3636
}
3737
},
38+
'/api/test-no-csrf': {
39+
csurf: false
40+
},
3841
'/preserve': {
3942
security: {
4043
headers: {
@@ -64,6 +67,7 @@ export default defineNuxtConfig({
6467
interval: 30000,
6568
headers: true
6669
},
70+
csrf: true,
6771
},
6872

6973
hooks: {

0 commit comments

Comments
 (0)