Phoenix application setting same_site does not seem to have an effect

Hi,

it works on my side:

EF

With the same in my Endpoint:

  @session_options [
    store: :cookie,
    # ...
    same_site: "Lax",
  ]

  # ...

  plug Plug.Session, @session_options

Which version of Plug are you using? You need Plug >= 1.10.1 (you can, for example, check the output of mix deps).

v1.10.1 (2020-05-15)

  • [Plug.Conn] Support :same_site option when writing cookies

(which is already quite old)