Skip to content

Commit

Permalink
fix: #4021
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Jun 11, 2024
1 parent 06bb598 commit 24a45b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-tomatoes-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/core": patch
---

Added `SameSite` default to `cookieStorage`
2 changes: 1 addition & 1 deletion packages/core/src/utils/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const cookieStorage = {
},
setItem(key, value) {
if (typeof window === 'undefined') return
document.cookie = `${key}=${value};path=/`
document.cookie = `${key}=${value};Path=/;SameSite=Lax`
},
removeItem(key) {
if (typeof window === 'undefined') return
Expand Down

0 comments on commit 24a45b2

Please sign in to comment.