samesite=lax for persistent session

This commit is contained in:
byte[] 2020-01-07 10:43:16 -05:00
parent 45325f2ac9
commit d362304d2d

View file

@ -46,7 +46,9 @@ defmodule PhilomenaWeb.Endpoint do
encryption_salt: "authenticated encrypted cookie" encryption_salt: "authenticated encrypted cookie"
plug Pow.Plug.Session, otp_app: :philomena plug Pow.Plug.Session, otp_app: :philomena
plug PowPersistentSession.Plug.Cookie, otp_app: :philomena plug PowPersistentSession.Plug.Cookie,
otp_app: :philomena,
persistent_session_cookie_opts: [extra: "SameSite=Lax"]
plug PhilomenaWeb.ReloadUserPlug plug PhilomenaWeb.ReloadUserPlug
plug PhilomenaWeb.RenderTimePlug plug PhilomenaWeb.RenderTimePlug