Skip to content

Commit

Permalink
fix: disable csrf on setup route
Browse files Browse the repository at this point in the history
  • Loading branch information
vic256 committed Aug 21, 2024
1 parent 1911fae commit a5da91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/shield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const shieldConfig = defineConfig({
*/
csrf: {
enabled: true,
exceptRoutes: [],
exceptRoutes: ['auth.setup'],
enableXsrfCookie: false,
methods: ['POST', 'PUT', 'PATCH', 'DELETE'],
},
Expand Down

0 comments on commit a5da91b

Please sign in to comment.