Cookies doesn't process
When I try to run in my middleware the following
the result I get is
undefined
, then randomly after a while when I rerun it shows the cookie, but the cookie never allowed to be deleted or changed and always stays the same.justboereh•28d ago
I don’t know HTTP, but I think
setCookie
append your value to Set-Cookie
header for the browser. You might want to use some sort of context.N01R•28d ago
Found the issue now, I returned
return new Response(null, { status: 204 })
and for resulted in this issue.
as I need to set the headers alongside the status for it to work.
solution is to use return c.body('', 204)
Want results from more Discord servers?
More Postsuse Context to get vars from wrangler.tomlhow can fix this code. i want to use my openaiApiKey from the wrangler.toml when i create an openai Connect Hono Cloudflare with MongoDBHi. I am using Hono and deploying to Cloudflare. However I am unable to find a way to connect mongodCase insensitive query paramsWe are using hono-zod-openapi to replace an existing API.
Sadly the old API (written in ASP.Net) appPassword hashingHow to hash password?How to setup Hono with Remix/Cloudflare for Vite dev server?From the documentation for Cloudflare Pages, there is an adapter and a plugin, but it is not clear hValidate response objectsUsing the zod validator middleware it is possible to validate params , query, request body like:
``