Skip to content

docs: Cookie sameSite type incorrectly shows "String" instead of "Strict" #5380

@AliMahmoudDev

Description

@AliMahmoudDev

Description

In docs/docs/api/Cookies.md, the sameSite field type is documented as:

* **sameSite** `"String"|"Lax"|"None"` (optional)

But the actual source code in lib/web/cookies/index.js line 20 defines it as:

@property {"Strict"|"Lax"|"None"} [sameSite]

The first value should be "Strict", not "String". This is a simple typo.

Fix

Change "String" to "Strict" in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions