added source header

This commit is contained in:
Kirill Litvinov
2023-12-07 17:57:19 +03:00
parent a536db3433
commit 14313c98e8
3 changed files with 5 additions and 3 deletions

View File

@@ -197,6 +197,7 @@ class Aggregator {
isReversedOrder?: boolean,
partnerId?: string,
fromWidget?: boolean,
source?: string,
) => {
const headers = {
'Content-Type': 'application/json',
@@ -206,6 +207,7 @@ class Aggregator {
},
...(partnerId !== undefined) && { 'X-Partner-Id': partnerId },
...(fromWidget !== undefined) && { 'X-From-Widget': fromWidget ? 'true' : 'false' },
...(source !== undefined) && { 'X-Source': source },
...this.basicAuthHeaders,
};