diff options
author | Hakurei Reimu <admin@marchgenso.me> | 2019-04-15 12:31:37 +0800 |
---|---|---|
committer | Hakurei Reimu <admin@marchgenso.me> | 2019-04-16 22:20:56 +0800 |
commit | 10096bbf2b6c18104cb63b5486681d00eaa5fb6c (patch) | |
tree | 4b884d414ad17dea4bfbdefe8969c31385aad542 /config | |
parent | 776f1e3bdf148b2a9be4b99fff0578af76a700cb (diff) | |
download | pleroma-10096bbf2b6c18104cb63b5486681d00eaa5fb6c.tar.gz pleroma-10096bbf2b6c18104cb63b5486681d00eaa5fb6c.zip |
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`.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs index eb74e7483..750e593e3 100644 --- a/config/config.exs +++ b/config/config.exs @@ -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, |