-
Notifications
You must be signed in to change notification settings - Fork 39
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unable to use cookies through hono/cookie
#209
Labels
bug
Something isn't working
Comments
driedpampas
changed the title
Unable to use cookies
Unable to use cookies through Jul 27, 2024
hono/cookie
Update: I remembered removing the |
And I removed it again and cookies still work fine. Will never figure out what happened. |
It has started happening again with the same exact errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of HonoX are you using?
0.1.23
What steps can reproduce the bug?
Case 1 -
getCookie
This error is thrown in the browser console:
which points to this line
const cookie = c.req.raw.headers.get("Cookie");
Case 2 -
getSignedCookie
In development, bun throws and exits with:
Case 3 -
setCookie
This throws:
Which points to
c.header("set-cookie", cookie, { append: true });
Case 4 -
setSignedCookie
bun
throws and exists with:P.S: These snippets work perfectly in a Hono-only environment
The text was updated successfully, but these errors were encountered: