mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 10:45:44 +00:00
@@ -21,6 +21,9 @@ class ApiClient {
|
|||||||
if (token && token !== "null" && token !== "undefined") {
|
if (token && token !== "null" && token !== "undefined") {
|
||||||
config.headers.Authorization = `Bearer ${token}`;
|
config.headers.Authorization = `Bearer ${token}`;
|
||||||
}
|
}
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
config.headers["X-Frontend-Base-URL"] = window.location.origin;
|
||||||
|
}
|
||||||
return config;
|
return config;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user