mirror of
https://github.com/penpot/penpot.git
synced 2025-05-16 12:46:10 +02:00
🐛 Fix unexpected default cookies behavior on redirectiong to penpot.
The SameSite=Strict on chrome behaves differently than in Firefox and makes the top-level url redirect not sending cookies if the user is redirected from other page to penpot. The SameSite=Lax fixes the issue.
This commit is contained in:
parent
f74569506e
commit
2feb22d3bd
2 changed files with 2 additions and 3 deletions
|
@ -58,9 +58,7 @@
|
|||
(assoc response :cookies {cookie-name {:path "/"
|
||||
:http-only true
|
||||
:value id
|
||||
:same-site (cond (not secure?) :lax
|
||||
cors? :none
|
||||
:else :strict)
|
||||
:same-site (if cors? :none :lax)
|
||||
:secure secure?}})))
|
||||
|
||||
(defn- clear-cookies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue