0
Fork 0
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:
alonso.torres 2021-10-20 16:55:52 +02:00 committed by Andrey Antukh
parent 1573d794b9
commit a7241d4128

View file

@ -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]