From caf5424cb3e9d070346d13862b2d138d7ad15256 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 27 Feb 2020 16:03:19 +0200 Subject: [PATCH] Add samesite strict to cookie --- lib/plausible_web/endpoint.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plausible_web/endpoint.ex b/lib/plausible_web/endpoint.ex index b66811631..166439772 100644 --- a/lib/plausible_web/endpoint.ex +++ b/lib/plausible_web/endpoint.ex @@ -38,7 +38,8 @@ defmodule PlausibleWeb.Endpoint do store: :cookie, key: "_plausible_key", signing_salt: "3IL0ob4k", - max_age: 60*60*24*365*5 # 5 years, this is super long but the SlidingSessionTimeout will log people out if they don't return for 2 weeks + max_age: 60*60*24*365*5, # 5 years, this is super long but the SlidingSessionTimeout will log people out if they don't return for 2 weeks + extra: "SameSite=Strict" plug CORSPlug