@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.
- package/dist/client.js +1 -3
- 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
|
-
|
|
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({
|