diff --git a/web-console/src/entry.ts b/web-console/src/entry.ts index 45a6d5e4b03..abe28c8300e 100644 --- a/web-console/src/entry.ts +++ b/web-console/src/entry.ts @@ -73,7 +73,7 @@ if (consoleConfig.baseURL) { UrlBaser.baseUrl = consoleConfig.baseURL; } if (consoleConfig.customHeaderName && consoleConfig.customHeaderValue) { - apiConfig.headers.common[consoleConfig.customHeaderName] = consoleConfig.customHeaderValue; + apiConfig.headers[consoleConfig.customHeaderName] = consoleConfig.customHeaderValue; } if (consoleConfig.customHeaders) { Object.assign(apiConfig.headers, consoleConfig.customHeaders);