Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jar.getCookies returns an empty array even if cookies are there. #290

Open
thecookieswhoplays opened this issue Jul 8, 2023 · 1 comment

Comments

@thecookieswhoplays
Copy link

Hi, so I have been trying to use axios with tough cookie jar and it seems to be working to receive and send cookies however when I do jar.getCookies("site") I get an empty array. I try to dig deeper so I modifed a little the pacakge code and I added a console.log to see what was going wrong
image
and to my suprise the cookie where being logged by this console.log but not returned to me
image
image

Is there any way to fix it ?

@colincasey
Copy link
Contributor

@thecookieswhoplays could you provide some more context? e.g.; steps to reproduce the issue that show how you are setting the cookie and then how you are retrieving it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants