Skip to content

Configurable origin cookie #20

Closed

Description

@basmasking

Description:
The current OriginMiddleware determines the request origin and sets a secure cookie in the browser. While this works correctly for Chromium-based browsers and Firefox, it fails in Safari. This is because Safari does not treat http://localhost as a secure context, and subsequently refuses to set cookies marked as Secure.

Consequently, applications relying on this origin cannot function properly during local development on Safari.

Proposed Change:
To support development across all browsers, we should make the cookie attributes configurable at the application level. We propose adding options for:

  • path
  • sameSite
  • secure (allowing it to be set to false for local dev)

We will continue to default httpOnly to true for the time being.

Activity

  1. self-assigned this
    on May 14, 2026
  2. added
    enhancement
    on May 14, 2026
  3. added 4 commits that reference this issue on May 14, 2026
  4. linked a pull request that will close this issuefeat(http): configurable origin cookie #21on May 14, 2026
  5. added a commit that references this issue on May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions