@medialane/sdk 0.123.0 → 0.125.0

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 CHANGED
@@ -1522,6 +1522,10 @@ function createBackendProxyHandler(config) {
1522
1522
  const value = readCookie(req, config.forwardCookie.name);
1523
1523
  if (value) headers2[config.forwardCookie.header] = value;
1524
1524
  }
1525
+ for (const name of config.forwardHeaders ?? []) {
1526
+ const value = req.headers.get(name);
1527
+ if (value) headers2[name] = value;
1528
+ }
1525
1529
  try {
1526
1530
  const upstream = await doFetch(endpoint2, {
1527
1531
  method: "POST",