Skip to content

Commit

Permalink
Set SameSite flag as strict for crossfeed-token. (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Grayson authored Oct 25, 2023
1 parent b6271c8 commit 1dd4ace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/hooks/usePersistentState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const usePersistentState = <T extends any = any>(
if (key === 'token') {
cookies.set('crossfeed-token', state, {
domain: process.env.REACT_APP_COOKIE_DOMAIN,
sameSite: 'strict',
secure: true
});
}
Expand Down

0 comments on commit 1dd4ace

Please sign in to comment.