pb-sxp-ui 1.15.20 → 1.15.21

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
@@ -784,7 +784,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
784
784
  return window
785
785
  .fetch(`${url}/api/${path}`, Object.assign({ headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId }, bffDataSource.headers), method: options.method, body: isTikTokChannel
786
786
  ? JSON.stringify({
787
- body: btoa(encodeURIComponent(JSON.stringify(options.body)))
787
+ body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
788
788
  })
789
789
  : JSON.stringify(options.body) }, (isTikTokChannel && { keepalive: true })))
790
790
  .then((res) => res.json())