mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +00:00
✨ Change cookie config
This commit is contained in:
parent
1573d794b9
commit
a7241d4128
@ -53,7 +53,12 @@
|
|||||||
|
|
||||||
(defn- add-cookies
|
(defn- add-cookies
|
||||||
[response {:keys [id] :as session}]
|
[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
|
(defn- clear-cookies
|
||||||
[response]
|
[response]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user