mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
✨ Change cookie config
This commit is contained in:
parent
1573d794b9
commit
a7241d4128
1 changed files with 6 additions and 1 deletions
|
@ -53,7 +53,12 @@
|
|||
|
||||
(defn- add-cookies
|
||||
[response {:keys [id] :as session}]
|
||||
(assoc response :cookies {cookie-name {:path "/" :http-only true :value id}}))
|
||||
(let [cors? (contains? cfg/flags :cors)]
|
||||
(assoc response :cookies {cookie-name {:path "/"
|
||||
:http-only true
|
||||
:value id
|
||||
:same-site (if cors? :none :strict)
|
||||
:secure true}})))
|
||||
|
||||
(defn- clear-cookies
|
||||
[response]
|
||||
|
|
Loading…
Reference in a new issue