@base44-preview/sdk 0.8.4-pr.53.42553d8 → 0.8.4-pr.53.f19b952
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 +3 -3
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -172,7 +172,7 @@ export function createClientFromRequest(request) {
|
|
|
172
172
|
const appId = request.headers.get("Base44-App-Id");
|
|
173
173
|
const serverUrlHeader = request.headers.get("Base44-Api-Url");
|
|
174
174
|
const functionsVersion = request.headers.get("Base44-Functions-Version");
|
|
175
|
-
const
|
|
175
|
+
const clientIpHeader = request.headers.get("Base44-Client-IP");
|
|
176
176
|
if (!appId) {
|
|
177
177
|
throw new Error("Base44-App-Id header is required, but is was not found on the request");
|
|
178
178
|
}
|
|
@@ -197,8 +197,8 @@ export function createClientFromRequest(request) {
|
|
|
197
197
|
}
|
|
198
198
|
// Prepare additional headers to propagate
|
|
199
199
|
const additionalHeaders = {};
|
|
200
|
-
if (
|
|
201
|
-
additionalHeaders["Base44-
|
|
200
|
+
if (clientIpHeader) {
|
|
201
|
+
additionalHeaders["Base44-Client-IP"] = clientIpHeader;
|
|
202
202
|
}
|
|
203
203
|
return createClient({
|
|
204
204
|
serverUrl: serverUrlHeader || "https://base44.app",
|