Skip to content

Commit

Permalink
Set cookie default to httpOnly: false (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Smith authored Nov 10, 2023
1 parent 9726faf commit 1e079c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-months-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@supabase/ssr': patch
---

Set cookie default to httpOnly: false
1 change: 1 addition & 0 deletions packages/ssr/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import { CookieOptions } from '../types';
export const DEFAULT_COOKIE_OPTIONS: CookieOptions = {
path: '/',
sameSite: 'lax',
httpOnly: false,
maxAge: 60 * 60 * 24 * 365 * 1000
};

0 comments on commit 1e079c3

Please sign in to comment.