Setting cookie in post request #193
Replies: 1 comment 7 replies
-
AxiosAdapter will use axios to request, and you can set the whole params which axios supports. about cookie, generally, cookies would be added automatically in non-cors request. so here is a check steps for you.
to set set globally axios.defaults.withCredentials = true; set scoped alovaInstance.Get('/xxx', {
// you can set the whole params which axios supports at here.
withCredentials: true
}) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using alova with AxiosAdapter for my need. I want to ask something.
How to set cookies to be send before request?
Do I set it in the header section?
Seem alova doesn't accept cookie options args when I using typescript.
Beta Was this translation helpful? Give feedback.
All reactions