elysiajs / eden

Fully type-safe Elysia client
MIT License
174 stars 41 forks source link

Eden Treaty/Fetch headers aren't sent back the correct way to Remix server action. #30

Open danstans opened 1 year ago

danstans commented 1 year ago

When using Eden Treaty/Fetch the headers object is empty and I am unable to store session cookies on the frontend. I believe this is an issue with Eden because I am able to use the global fetch and my cookies are automatically set. Is it possible to have Eden fetch behave more like normal fetch?

danstans commented 1 year ago

Can create minimum reproduction if requested

danstans commented 1 year ago

my issues are solved when removing the .then block in the edenFetch source. the opinionated return structure doesn't play well with remix