JustinNoel
JustinNoel
Explore posts from servers
HHono
Created by JustinNoel on 10/31/2024 in #help
getSetCookie is not a function
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
HHono
Created by JustinNoel on 10/31/2024 in #help
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
HHono
Created by creatour on 9/30/2024 in #help
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)?
app.use(
'*',
cors({
origin: 'http://app localhost:3000',
allowMethods: ['POST', 'GET', 'OPTIONS'],
})
)
app.use(
'*',
cors({
origin: 'http://app localhost:3000',
allowMethods: ['POST', 'GET', 'OPTIONS'],
})
)
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
HHono
Created by creatour on 9/30/2024 in #help
CORS Issue
Your browser should show some information about the policy violation. It may include information about what headers you're requesting that are refused. Please share a screenshot or the response that you see in the browser.
9 replies
HHono
Created by creatour on 9/30/2024 in #help
CORS Issue
Your browser should show some information about the policy violation. It may include information about what headers you're requesting that are refused. Please share a screenshot or the response that you see in the browser.
9 replies
HHono
Created by creatour on 9/30/2024 in #help
CORS Issue
This is happening from a public URL? If so, you'd need to add that public URL in thi origin for your code.
9 replies
HHono
Created by 0x146231489231923 on 9/16/2024 in #help
where do u host hono?
Cloudflare for me.
7 replies