mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
samesite=lax for persistent session
This commit is contained in:
parent
45325f2ac9
commit
d362304d2d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue