Skip to content

Commit

Permalink
remove port from cookie domain
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRoehm committed Oct 18, 2024
1 parent afa8a62 commit b279003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const deleteRefreshToken = (response: Response) => {
}

export const sendAuthToken = (response: Response, token: string) => {
response.cookie('auth_token', token, { path: '/', httpOnly: true, sameSite: true, domain: 'localhost:3003' })
response.cookie('auth_token', token, {
path: '/', httpOnly: true, sameSite: true, domain: 'localhost' })
}

export const deleteAuthToken = (response: Response) => {
Expand Down

0 comments on commit b279003

Please sign in to comment.