-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When run with bun as runtime, doesn't seem to include nor parse cookies.
Tested with global fetch and axios.
To Reproduce
Steps to reproduce the behavior:
- Run the examples from this repo or https://github.com/3846masa/axios-cookiejar-support
- Send a request which responds with
set-cookieheaders. - 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
const jar = new CookieJar(undefined, {
// -- Tried all of those, didn't help
// looseMode: true,
// prefixSecurity: "unsafe-disabled",
// rejectPublicSuffixes: false,
// allowSpecialUseDomain: true,
});
const client = wrapper(axios.create({jar }));
await client.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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working