Remove header for partner interaction to comply with CORS.

This commit is contained in:
Patrick Fic
2024-04-29 10:50:18 -07:00
parent ef077c2d48
commit e799417aaf

View File

@@ -17,7 +17,9 @@ export const axiosAuthInterceptorId = axios.interceptors.request.use(
executeFunction: true,
args: [],
promanager: () => {
config.headers["Convenient-Company"] = "promanager";
if (!config.url.startsWith("http://localhost:1337")) {
config.headers["Convenient-Company"] = "promanager";
}
}
});
}