Trying to fetch() with Svelte, not working with credentials
Hi,
This code doesn't work. It throws an error:
The credentials field on RequestInitializerDict is not implemented;
.
Is there a workaround? Otherwise it can't get the authenticated API data :P7 Replies
I think it's trying to do a thing with workers which isn't necessarily what we want here
Remove the
credentials
propertythen the cookie from the api isnt sent
Yes it is
If you send it, it'll be sent
i think this is a dumb question but
how
becuase usually in normal js when we use credentials: 'include', it sends the cookies associated with the api as well
^
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View