Skip to content

Cookies in universal load function #11828

@MajorBreakfast

Description

@MajorBreakfast

Describe the problem

Currently cookies are only available in +page.server.ts and +layout.server.ts but not in the universal load variants.

Describe the proposed solution

Make cookies available in universal load(). Only cookies with httpOnly disabled may be accessed, so that the universal load() function behaves the same in whichever environment it is executed.

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature / enhancementNew feature or requestneeds-decisionNot sure if we want to do this yet, also design work needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions