I need to set host-only flag of a cookie to true, but couldnot find something on it specific for elixir/phoenix.
That flag cannot be explicitly set or unset. It’s derived from the cookie domain value (if set). You can customize the domain of the session cookie via the :domain
option: Plug.Session — Plug v1.14.0
2 Likes