Remove x-dl headers for the external sources#3048
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds the ability to filter out x-dl headers when making requests to external data sources. The change introduces an isExternal flag to identify external sources and prevents internal headers from being forwarded to them.
- Adds
isExternaloptional property toSourceConfigtype - Implements filtering logic to skip
x-dlheaders for external sources during proxy header processing
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/server/components/charts-engine/types.ts | Adds isExternal boolean flag to SourceConfig type |
| src/server/components/charts-engine/components/processor/data-fetcher.ts | Implements header filtering logic to exclude x-dl headers for external sources |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
📦 Statoscope quick diff with main-branch: ⏱ Build time: -1.4 sec (-2.56%) ⚖️ Initial size: 0.00 kb (0%) 🕵️ Validation errors: 0 Full Statoscope report could be found here |
|
|
No description provided.