Skip to content

Commit

Permalink
fix(example): csrf ignore authorization path
Browse files Browse the repository at this point in the history
  • Loading branch information
takoring committed Feb 12, 2025
1 parent b760182 commit 33cafd6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 5 additions & 1 deletion example/nodejs/src/config/development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export const get = (): Config => {
'https://viron.work',
'https://snapshot.viron.work',
],
ignorePaths: ['/ping'],
ignorePaths: [
'/ping',
'/oidc/authorization',
'/oauth2/google/authorization',
],
},
auth: {
jwt: {
Expand Down
7 changes: 6 additions & 1 deletion example/nodejs/src/config/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ export const get = (mode: Mode): Config => {
'https://localhost:8000',
'https://viron.work',
'https://snapshot.viron.work',
'https://viron.work:8000',
],
ignorePaths: [
'/ping',
'/oidc/authorization',
'/oauth2/google/authorization',
],
ignorePaths: ['/ping'],
},
auth: {
jwt: {
Expand Down
6 changes: 5 additions & 1 deletion example/nodejs/src/config/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export const get = (): Config => {
csrf: {
host: 'demo.viron.plus',
allowOrigins: ['https://viron.plus', 'https://snapshot.viron.plus'],
ignorePaths: ['/ping'],
ignorePaths: [
'/ping',
'/oidc/authorization',
'/oauth2/google/authorization',
],
},
auth: {
jwt: {
Expand Down

0 comments on commit 33cafd6

Please sign in to comment.