Skip to content

Commit 9275b7b

Browse files
committed
fix(dispatcher): Correct header from 'X-Session' to 'X-Api-Key' in Dispatcher requests
1 parent 907b9cb commit 9275b7b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## Unreleased
6+
- Replace auth header from 'X-Session' to 'X-Api-Key' in Dispatcher requests
7+
58
## [0.24.0] (2025-09-23)
69
### Bug
710
- Fixed bug on local cryptography hints detection

src/sdk/scanner/Dispatcher/Dispatcher.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { DispatcherResponse } from './DispatcherResponse';
88
import { ScannerCfg } from '../ScannerCfg';
99
import { GlobalControllerAborter } from './GlobalControllerAborter';
1010
import { DispatchableItem } from './DispatchableItem';
11+
12+
1113
import { Utils } from '../../Utils/Utils';
1214
import { ProxyAgent } from "proxy-agent";
1315

@@ -182,7 +184,7 @@ export class Dispatcher extends EventEmitter {
182184
'User-Agent': this.scannerCfg.CLIENT_TIMESTAMP
183185
? this.scannerCfg.CLIENT_TIMESTAMP
184186
: `scanoss-js/v${Utils.getPackageVersion()}`,
185-
'X-Session': this.scannerCfg.API_KEY,
187+
'X-Api-Key': this.scannerCfg.API_KEY,
186188
'x-request-id': item.uuid,
187189
},
188190
signal: timeoutController.signal,

0 commit comments

Comments
 (0)