Server Side CORS Updates.

This commit is contained in:
Patrick Fic
2022-06-08 13:24:43 -07:00
parent b36b4cb213
commit fde0681a93
2 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ if (process.env.NODE_ENV === "production") {
process.env.REACT_APP_AXIOS_BASE_API_URL || "https://api.imex.online/";
}
axios.defaults.withCredentials = true;
export const axiosAuthInterceptorId = axios.interceptors.request.use(
async (config) => {
if (!config.headers.Authorization) {