Merge pull request #668 from Tria-plc/alpha

pass baseurl to header
This commit is contained in:
robiman
2026-07-14 12:28:36 +03:00
committed by GitHub

View File

@@ -21,6 +21,9 @@ class ApiClient {
if (token && token !== "null" && token !== "undefined") {
config.headers.Authorization = `Bearer ${token}`;
}
if (typeof window !== "undefined") {
config.headers["X-Frontend-Base-URL"] = window.location.origin;
}
return config;
});