Skip to content

Allow setting SameSite on the API session cookie #611

Backlog

Description

@justin-fritz

The Web Admin can be embedded in an iframe of another site via server.api.contentsecuritypolicy (frame-ancestors). Login succeeds, but the next request has no session: the JSESSIONID cookie (Path=/api) is sent without a SameSite attribute, so Chrome and Edge treat it as SameSite=Lax and do not send it in a cross-site iframe. The Web Admin relies solely on this cookie, and there is currently no way to configure SameSite.

Proposal: a new property server.api.sessioncookie.samesite (None/Lax/Strict, blank = current behavior), applied via Jetty's SessionHandler.setSameSite(), which is available in the bundled Jetty 9.4.57.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions