Skip to content

Default Cookie Options not documented #987

Open
@kaaax0815

Description

@kaaax0815

Describe the change

The Cookie by default is Secure and HttpOnly. (https://github.com/unjs/h3/blob/main/src/utils/internal/session.ts)

But there is no documentation for that. As the Types for the Cookie Object come from cookie-es (https://github.com/unjs/h3/blob/main/src/types/utils/session.ts) it specifies that the secure option is not set by default. even tho it is

URLs

https://h3.unjs.io/examples/handle-session

Additional information

  • Would you be willing to help?

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

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions