add extra_cookie_attrs option to config
Allow instance admins to set their own SameSite cookie policy from the config. Default value in the config is `Lax`.
This commit is contained in:
parent
776f1e3bdf
commit
10096bbf2b
2 changed files with 8 additions and 1 deletions
|
|
@ -154,7 +154,10 @@ config :pleroma, Pleroma.Web.Endpoint,
|
|||
signing_salt: "CqaoopA2",
|
||||
render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)],
|
||||
pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2],
|
||||
secure_cookie_flag: true
|
||||
secure_cookie_flag: true,
|
||||
extra_cookie_attrs: [
|
||||
"SameSite=Lax"
|
||||
]
|
||||
|
||||
# Configures Elixir's Logger
|
||||
config :logger, :console,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue