How to save cookie set in response to browser? #503
-
I have a Using the browser fetch api, I am able to easily set the cookie in browser with a simple fetch call: However I am unable to do so via ky: I thought I might be able to perform a separate set cookie step in an How do I get ky to set the cookie in the same way as is possible through the fetch api? Some details: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you try |
Beta Was this translation helpful? Give feedback.
Did you try
await ky.get('http://localhost:4000/set-session', { cache: 'no-store', credentials: 'include' })
?