Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Cookie Options not documented #987

Open
1 task
kaaax0815 opened this issue Mar 5, 2025 · 0 comments
Open
1 task

Default Cookie Options not documented #987

kaaax0815 opened this issue Mar 5, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@kaaax0815
Copy link

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?
@kaaax0815 kaaax0815 added the documentation Improvements or additions to documentation label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant