You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Send a request which responds with set-cookie headers.
Send another request
Expected behavior
The cookie jar has cookies. The second request sends them back
Actual behaviour
Cookie jar is empty.
Second request has no cookie header.
Setting cookies manually with jar.setCookieSync(...) between requests, then sending second request still results in second request not containing cookie header 🤔
Repro
constjar=newCookieJar(undefined,{// -- Tried all of those, didn't help// looseMode: true,// prefixSecurity: "unsafe-disabled",// rejectPublicSuffixes: false,// allowSpecialUseDomain: true,});constclient=wrapper(axios.create({jar }));awaitclient.get('https://some.site');console.log(jar.toJSON());
bun run example.ts
Environments
OS: macos
Bun version: 1.0.12
axios version: 1.6.1
tough-cookie version: 4.1.3
The text was updated successfully, but these errors were encountered:
Tried with got, but it's got other problems that prevent it from running. Given that bun has its own fetch implementation, that might be what's causing trouble. See oven-sh/bun#4395
The http-cookie-agent relies on undici, the internal implementation of fetch in Node.js.
Therefore, it will not work with any fetch implementation other than Node.js.
I would like to make it work with fetch implementations other than Node.js in the future, but there is no plan yet.
Describe the bug
When run with bun as runtime, doesn't seem to include nor parse cookies.
Tested with global
fetch
andaxios
.To Reproduce
Steps to reproduce the behavior:
set-cookie
headers.Expected behavior
The cookie jar has cookies. The second request sends them back
Actual behaviour
Cookie jar is empty.
Second request has no
cookie
header.Setting cookies manually with
jar.setCookieSync(...)
between requests, then sending second request still results in second request not containingcookie
header 🤔Repro
Environments
The text was updated successfully, but these errors were encountered: