Server Side CORS Updates.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user