I want the react application to be able to store cookies in the cookie storage of browser.
I am required to send withCredentials: true in headers in axios.
axios.defaults.withCredentials = true
export const login = (email, password) => {
return axios({
method: "POST"
url: "https://api.*****.**/login",
data: {
email: email,
password:
…
Top comments (0)