Reactjs – CORS Configuration error for authorization header with Spring/Boot and React.js
I am trying to call this API from my React.js front end using jwt authentication const getCategory = () => { const token = localStorage.getItem("user"); return axios .get("http://localhost:8080/api/v1/category", { withCredentials: true, headers: { Authorization: `Bearer ${token}`, }, }) .then((res) =>…