Add Secure and SameSite cookie flags
This commit is contained in:
parent
5ffaa2bf69
commit
b9a642da1e
2 changed files with 5 additions and 2 deletions
|
|
@ -49,7 +49,9 @@ defmodule Pleroma.Web.Endpoint do
|
|||
Plug.Session,
|
||||
store: :cookie,
|
||||
key: "_pleroma_key",
|
||||
signing_salt: "CqaoopA2"
|
||||
signing_salt: "CqaoopA2",
|
||||
secure: Application.get_env(:pleroma, Pleroma.Web.Endpoint) |> Keyword.get(:secure_cookie_flag),
|
||||
extra: "SameSite=Lax"
|
||||
)
|
||||
|
||||
plug(Pleroma.Web.Router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue