godprotocol 2.3.36 → 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
|
@@ -201,7 +201,8 @@ class Headers extends Services {
|
|
|
201
201
|
version: this.gp.__gp_version,
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
-
let third_party =
|
|
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
|
);
|
|
@@ -107,7 +107,7 @@ class Services {
|
|
|
107
107
|
headers["x-platform"] = this.platform_uri;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
if (header
|
|
110
|
+
if (header?.xplatform) headers["x-platform"] = header.xplatform;
|
|
111
111
|
|
|
112
112
|
if (
|
|
113
113
|
!headers["x-api-key"] &&
|