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

how axios is able to send post requests without withCredentials property set to true ?? #8

Open
ambikaprasad21 opened this issue Jun 18, 2024 · 3 comments

Comments

@ambikaprasad21
Copy link

No description provided.

@SEEDART007
Copy link

@ambikaprasad21 axios can send default requests also.

@ambikaprasad21
Copy link
Author

If there is some token present in cookie, when post request happens using axios it will bydefault include those cookies.
Please reply with okay if it is correct.

I have used fetch for api calls and it requires credentials property to set manually if i want to send cookie data to post request.

@SEEDART007
Copy link

@ambikaprasad21 i dont think there are default cookies in axios req, there maybe could some default headers included.

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