I am trying to extract the value of a cookie in sveltekit that is recieved from the backend but i cannot seem to find a way to access cookies in svelte also i am using Typescript and if possible i don't want to access the DOM directly.
So far i've tried using:
- js-cookie
- chatGPT anwear that was totally incorrect
- Le internet which hasn't worked since i am asking right here
The set-cookie header is shown in the network tab it isn't secure nor it is httponly. Just please explain how i can access it's value from sveltekit typescript.
EDIT: backend is actix-web
Solved: I set the domain to localhost on the actix side and also set the cookie to secure.