Skip to content

Commit 484fe2b

Browse files
committed
Add comment about BE cookie
1 parent ecaf61f commit 484fe2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/webpack.dev.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const config: Configuration = {
5252
devMiddleware: {
5353
publicPath: "/",
5454
headers: {
55+
// This header corresponds to "src/api/api.ts"'s hardcoded FE token.
56+
// This is the secret side of the CSRF double cookie submit method.
5557
"Set-Cookie":
5658
"csrf_token=JXm9hOUdZctWt0ZZGAy9xiS/gxMKYOThdxjjMnMUyn4=; Path=/; HttpOnly; SameSite=Lax",
5759
},

0 commit comments

Comments
 (0)