We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55ba0ac commit 0a6ea36Copy full SHA for 0a6ea36
.changeset/loose-experts-stick.md
@@ -0,0 +1,5 @@
1
+---
2
+'@commercetools/ts-client': patch
3
4
+
5
+Add meta-headers to auth http requests
packages/sdk-client-v3/src/middleware/auth-middleware/auth-request-executor.ts
@@ -19,6 +19,7 @@ export async function executeRequest(options: ExecuteRequestOptions) {
19
userOption,
20
tokenCacheObject,
21
tokenCacheKey,
22
+ request,
23
} = options
24
25
let url = options.url
@@ -64,6 +65,7 @@ export async function executeRequest(options: ExecuteRequestOptions) {
64
65
url,
66
method: 'POST',
67
headers: {
68
+ ...request.headers,
69
Authorization: `Basic ${basicAuth}`,
70
'Content-Type': 'application/x-www-form-urlencoded',
71
'Content-Length': byteLength(body),
0 commit comments