Skip to content

Commit

Permalink
PoSonar - update crsf function
Browse files Browse the repository at this point in the history
  • Loading branch information
lwih committed Mar 4, 2024
1 parent 31a7f76 commit 069b4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/auth/csrf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const csrfToken = (): string | null => {
const match = document.cookie.match(/XSRF-TOKEN=([^;]*)/);
const match = /XSRF-TOKEN=([^;]*)/.exec(document.cookie);
return match ? match[1] : null;
}

0 comments on commit 069b4dd

Please sign in to comment.