Skip to content

Commit 4801d37

Browse files
committed
Clean up unused custom header
1 parent e3d9fb6 commit 4801d37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/api/api.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ export function authInterceptor(reqConfig: AxiosRequestConfig) {
3232
};
3333
}
3434

35-
// Create an instance instead of setting global defaults
36-
// Setting global values affects Cost Management APIs in OCM and HCS, when navigating between apps
35+
// Create an Axios instance
3736
//
37+
// Note: Setting global defaults may affect the base URL in Cost Management, HCS, and OCM, when navigating between apps
3838
// See https://issues.redhat.com/browse/RHCLOUD-25573
3939
const axiosInstance: AxiosInstance = axios.create({
4040
baseURL: '/api/cost-management/v1/',
41-
headers: { 'X-Custom-Header': 'foobar' },
4241
});
4342

4443
axiosInstance.interceptors.request.use(authInterceptor);

0 commit comments

Comments
 (0)