We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Summary: Cookies received in previous get call not send with following post command.
Details: I am using the following sequence of calls to login into the backend.
axios.get(Url.csrfToken(), { withCredentials: true }) .then(response => response.data) .then(token => axios.post(Url.authenticate(), { username, password }, { headers: { 'content-type' : 'application/x-www-form-urlencoded', 'crsf-token' : `${token.csrfToken}` }, withCredentials: true }) ) .then(response => console.log('completed')) .catch(error => console.log(error))
Cookies returned in set-cookie in response headers for get() is required by post().
set-cookie
But post() does not have any cookie in its header, leading to failure.
How could I fix it, please help?
Environment
The text was updated successfully, but these errors were encountered:
@varmeh How did you fix this?
Sorry, something went wrong.
Also curious
No branches or pull requests
Summary:
Cookies received in previous get call not send with following post command.
Details:
I am using the following sequence of calls to login into the backend.
Cookies returned in
set-cookie
in response headers for get() is required by post().But post() does not have any cookie in its header, leading to failure.
How could I fix it, please help?
Environment
The text was updated successfully, but these errors were encountered: