@base44-preview/sdk 0.8.38-pr.228.85deaff → 0.8.38-pr.228.c6ecf4c

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.
Files changed (2) hide show
  1. package/dist/client.js +1 -3
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -379,9 +379,7 @@ export function createClientFromRequest(request) {
379
379
  // matters for the user-scoped client: unlike the service token, the user JWT
380
380
  // carries no data-env, so without forwarding this header the callbacks fall
381
381
  // back to production data even when the app runs in test-data mode.
382
- // Forward only the known closed set (matches the backend contract) rather
383
- // than relaying an arbitrary attacker-supplied header value onward.
384
- if (dataEnvHeader === "dev" || dataEnvHeader === "prod") {
382
+ if (dataEnvHeader) {
385
383
  additionalHeaders["X-Data-Env"] = dataEnvHeader;
386
384
  }
387
385
  return createClient({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.38-pr.228.85deaff",
3
+ "version": "0.8.38-pr.228.c6ecf4c",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",