JustinNoel
Explore posts from serversgetSetCookie is not a function
The problem was actually with Cloudflare configuration.
https://developers.cloudflare.com/workers/configuration/compatibility-dates/#headers-supports-getsetcookie
3 replies
CDCloudflare Developers
•Created by JustinNoel on 10/31/2024 in #workers-help
getSetCookie is not a function
Also, I really got bit by the new Pages
wrangler.toml
config beta. Took a long time to work that all out after screwing it all up.17 replies
CDCloudflare Developers
•Created by JustinNoel on 10/31/2024 in #workers-help
getSetCookie is not a function
No worries.
17 replies
CDCloudflare Developers
•Created by JustinNoel on 10/31/2024 in #workers-help
getSetCookie is not a function
that was it. Thank you so much!!!!
17 replies
getSetCookie is not a function
There is this line in the Hono source:
const cookies = this.#res.headers.getSetCookie()
https://github.com/honojs/hono/blob/main/src/context.ts#L407
I just can't understand why this works in production on an old build and not staging on a new build.3 replies
CDCloudflare Developers
•Created by JustinNoel on 10/31/2024 in #workers-help
getSetCookie is not a function
This DOES work in local development. Maybe it's just something else I've changed.
17 replies
CDCloudflare Developers
•Created by JustinNoel on 10/31/2024 in #workers-help
getSetCookie is not a function
There is this line in the Hono source though:
const cookies = this.#res.headers.getSetCookie()
https://github.com/honojs/hono/blob/main/src/context.ts#L407
I just can't understand why this works in production on an old build and not staging on a new build.17 replies
CDCloudflare Developers
•Created by JustinNoel on 10/31/2024 in #workers-help
getSetCookie is not a function
Thanks for the response though. I've asked in the Hono discord too.
17 replies
CDCloudflare Developers
•Created by JustinNoel on 10/31/2024 in #workers-help
getSetCookie is not a function
It doesn't happen on my production release using the old Hono. So, it's feeling like not a Hono issue to me.
17 replies
CORS Issue
That's interesting. For a test, can you just harcode the cors like displayed here (https://hono.dev/docs/middleware/builtin/cors#usage)?
Does that work? If it does, I'd suggest reverting back to your original code and debugging what's going on in your local Hono
node_modules
. See https://github.com/honojs/hono/blob/main/src/middleware/cors/index.ts line 57.9 replies