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

Allow disable cookies #2125

Closed
abenfica opened this issue May 3, 2019 · 5 comments
Closed

Allow disable cookies #2125

abenfica opened this issue May 3, 2019 · 5 comments

Comments

@abenfica
Copy link

abenfica commented May 3, 2019

I am trying to send a request without forwarding cookies and I can't do it with axios.
I did it with fetch where cookies are disabled by default.

Using axios 0.18 with React

Is it possible to completely disable cookies or specify exactly the ones I want to forward in a request?

@shirshendubhowmick
Copy link

@abenfica There is a feature called withCredentails, which allow or restrict cookies. Is it possible to share your code ? Will help us to understand what you are trying to achieve

@kevilen
Copy link

kevilen commented Jun 20, 2019

I use axios.create({ withCredentials: true }) some where, but when I use axios.create({ withCredentials: false }) does not work...

@Alanscut
Copy link
Collaborator

Alanscut commented Nov 8, 2019

hi @kevilen , I found that axios.create({ withCredentials: false }) take effect in my server #2455 (comment) , could you provide more information? so I could do futher investigation.

@yasuf
Copy link
Collaborator

yasuf commented Dec 13, 2019

closing stale issue, let's reopen if we get more info on this

@yasuf yasuf closed this as completed Dec 13, 2019
@zyd
Copy link

zyd commented May 8, 2020

#2472

@axios axios locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants