skymethod / denoflare

Develop, test, and deploy Cloudflare Workers with Deno.
https://denoflare.dev
MIT License
710 stars 36 forks source link

response.headers.getSetCookie is not a function or its return value is not iterable #74

Closed tbmale closed 7 months ago

tbmale commented 7 months ago

When I'm using the code at https://codeberg.org/tbmale/afraidlogin deployed to cloudflare, with denoflare, I get an error in cloudflare :

login_response.headers.getSetCookie is not a function or its return value is not iterable

The same code deployed with wrangler works.

johnspurlock-skymethod commented 7 months ago

It looks Cloudflare only gained that method last year [1].

You'll need to set the compatibility date for that worker to on or after that date (2023-03-01)

[1] https://developers.cloudflare.com/workers/configuration/compatibility-dates/#headers-supports-getsetcookie

tbmale commented 7 months ago

@johnspurlock-skymethod, thank you, that was it !

johnspurlock-skymethod commented 7 months ago

Great! Glad you got it working