We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a421405 commit eb33d1aCopy full SHA for eb33d1a
packages/cubejs-api-gateway/src/gateway.ts
@@ -2310,8 +2310,10 @@ class ApiGateway {
2310
}
2311
2312
protected extractAuthorizationHeaderWithSchema(req: Request) {
2313
- if (typeof req.headers.authorization === 'string') {
2314
- const parts = req.headers.authorization.split(' ', 2);
+ const authHeader = req.headers?.['x-cube-authorization'] || req.headers?.authorization;
+
2315
+ if (typeof authHeader === 'string') {
2316
+ const parts = authHeader.split(' ', 2);
2317
if (parts.length === 1) {
2318
return parts[0];
2319
0 commit comments