Answer the question
In order to leave comments, you need to log in
How to check if a cookie exists before sending a request to axios server?
There is a React application, requests to the server are sent using axios. Axios is configured like this
import axios from 'axios';
export default axios.create({
baseURL: `${process.env.REACT_APP_URL_API}`,
withCredentials: true
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question