godprotocol 2.3.37 → 2.3.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "2.3.37",
3
+ "version": "2.3.38",
4
4
  "description": "A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.",
5
5
  "main": "Index.js",
6
6
  "type": "module",
@@ -201,7 +201,8 @@ class Headers extends Services {
201
201
  version: this.gp.__gp_version,
202
202
  });
203
203
 
204
- let third_party = xplatform !== this.platform_uri; //&& !gp_profile.url.endsWith(hst);
204
+ let third_party =
205
+ xplatform !== this.platform_uri && !this.gp?.server?.domain.endsWith(hst);
205
206
 
206
207
  // if (gp_profile.url.endsWith(hst)) {
207
208
  // headers["x-platform"] = xplatform;
@@ -212,7 +213,7 @@ class Headers extends Services {
212
213
  third_party ? { from: xplatform } : {},
213
214
  {
214
215
  token: authorization,
215
- xplatform,
216
+ xplatform: third_party ? this.platform_uri : xplatform,
216
217
  api_version: "identity:v3",
217
218
  },
218
219
  );