Skip to content

SameSite cookie handling #217

@ygupta81

Description

@ygupta81

Description

Today there are multiple differences across browsers in how SameSite cookies are handled.

  1. Google’s Chrome and Microsoft’s Edge defaults to SameSite=Lax while Mozilla’s Firefox and Apple’s Safari do not - https://web.dev/samesite-cookies-explained/#samesite=lax-by-default
  2. Google’s Chrome and Microsoft’s Edge require secure context for SameSite=None while Mozilla’s Firefox enable this behind a preference and Apple’s Safari currently has no support - https://web.dev/samesite-cookies-explained/#samesite=none-must-be-secure

Rationale

These incompatibilities make life of web developers difficult with respect to following:-

  1. Developers often have to resort to detecting which browsers are SameSite incompatible. Based on that detection, different solutions are put in which make application maintenance difficult
  2. Detection mechanism itself is difficult to maintain as browsers are updated
  3. These incompatibilities also make security standards across the browsers inconsistent making a particular website less secure on one browser than the other.

Specification

Tests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions