diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 380e526..94d3a43 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -9,6 +9,8 @@ const api = axios.create({ api.interceptors.request.use((config) => { const token = useAuthStore.getState().token if (token) config.headers.Authorization = `Bearer ${token}` + const tenantId = localStorage.getItem('schaeffler_tenant_id') + if (tenantId) config.headers['X-Tenant-ID'] = tenantId return config })