Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Oct 23, 2024
1 parent 0385c6c commit e4878a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/script/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
domain:
HOSTNAME === 'localhost'
? undefined
: `.${HOSTNAME.replace(/^www\./, '')}`,
: // Remove 'www.' from the hostname (because we want to set the cookie on the root domain)
`.${HOSTNAME.replace(/^www\./, '')}`,
httpOnly: false,
path: '/',
sameSite: 'Lax',
Expand Down

0 comments on commit e4878a8

Please sign in to comment.