@medialane/sdk 0.124.0 → 0.125.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +9 -3
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +2 -0
- package/dist/starknet/index.d.ts +2 -0
- package/dist/starknet/index.js +9 -3
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1520,6 +1520,10 @@ function createBackendProxyHandler(config) {
|
|
|
1520
1520
|
const value = readCookie(req, config.forwardCookie.name);
|
|
1521
1521
|
if (value) headers2[config.forwardCookie.header] = value;
|
|
1522
1522
|
}
|
|
1523
|
+
for (const name of config.forwardHeaders ?? []) {
|
|
1524
|
+
const value = req.headers.get(name);
|
|
1525
|
+
if (value) headers2[name] = value;
|
|
1526
|
+
}
|
|
1523
1527
|
try {
|
|
1524
1528
|
const upstream = await doFetch(endpoint2, {
|
|
1525
1529
|
method: "POST",
|