How to implement Partitioned Cookies in Phoenix?

This is regarding google chrome soon upcoming removal of 3rd party cookies, full resource: https://goog.gle/chips

For those of us who have SameSite=None this may be breaking soon.

Put simply it seems that setting the cooking needs a new attribute: Partitioned;

How do i do that with Phoenix?

Currently in endpoint.ex :

  @session_options [
    store: :cookie,
    key: "REDACTED",
    signing_salt: "REDACTED",
    same_site: "None",
    secure: true
  ]

:wave: @flockonus

:extra might be the option: plug/lib/plug/conn.ex at cc535b13c5569f199dbde5ca5c030eb8a6d61e8b · elixir-plug/plug · GitHub

@session_options [
    store: :cookie,
    key: "REDACTED",
    signing_salt: "REDACTED",
    same_site: "None",
    secure: true,
    extra: "Partitioned"
  ]
2 Likes

Thank you, that seems to work, small tweak to add the semi-colon extra: "Partitioned;",

2 Likes