Remove header for partner interaction to comply with CORS.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user