Skip to content

Commit 3e5f9c1

Browse files
authored
Remove x-dl headers for the external sources (#3048)
1 parent 8cf3daa commit 3e5f9c1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/server/components/charts-engine/components/processor/data-fetcher.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,9 @@ export class DataFetcher {
738738
];
739739
if (Array.isArray(proxyHeaders)) {
740740
proxyHeaders.forEach((headerName) => {
741+
if (sourceConfig.isExternal && headerName.toLowerCase().startsWith('x-dl')) {
742+
return;
743+
}
741744
if (subrequestHeaders[headerName]) {
742745
headers[headerName] = subrequestHeaders[headerName];
743746
}

src/server/components/charts-engine/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export type SourceConfig = {
200200

201201
args?: Record<string, string | number | (string | number)[]>;
202202
maxRedirects?: number;
203+
isExternal?: boolean;
203204
};
204205

205206
export enum MiddlewareStage {

0 commit comments

Comments
 (0)