ts-glitter 21.0.1 → 21.0.3
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/lowcode/Entry.js
CHANGED
|
@@ -146,7 +146,7 @@ export class Entry {
|
|
|
146
146
|
}
|
|
147
147
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
148
148
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
149
|
-
glitter.share.editerVersion = 'V_21.0.
|
|
149
|
+
glitter.share.editerVersion = 'V_21.0.3';
|
|
150
150
|
glitter.share.start = new Date();
|
|
151
151
|
const vm = { appConfig: [] };
|
|
152
152
|
window.saasConfig = {
|
package/lowcode/Entry.ts
CHANGED
|
@@ -149,7 +149,7 @@ export class Entry {
|
|
|
149
149
|
}
|
|
150
150
|
(window as any).renderClock = (window as any).renderClock ?? createClock();
|
|
151
151
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
152
|
-
glitter.share.editerVersion = 'V_21.0.
|
|
152
|
+
glitter.share.editerVersion = 'V_21.0.3';
|
|
153
153
|
glitter.share.start = new Date();
|
|
154
154
|
const vm = { appConfig: [] };
|
|
155
155
|
(window as any).saasConfig = {
|
|
@@ -23,6 +23,10 @@ export class BaseApi {
|
|
|
23
23
|
if (requestOptions.method === 'GET') {
|
|
24
24
|
requestOptions.body = undefined;
|
|
25
25
|
}
|
|
26
|
+
const url = new URL(config.url);
|
|
27
|
+
if (url.origin !== location.origin) {
|
|
28
|
+
delete requestOptions.credentials;
|
|
29
|
+
}
|
|
26
30
|
try {
|
|
27
31
|
requestOptions.headers['mac_address'] = window.glitter.macAddress;
|
|
28
32
|
requestOptions.headers['language'] = requestOptions.headers['language'] || Language.getLanguage();
|
|
@@ -14,6 +14,10 @@ export class BaseApi {
|
|
|
14
14
|
if (requestOptions.method === 'GET') {
|
|
15
15
|
requestOptions.body = undefined;
|
|
16
16
|
}
|
|
17
|
+
const url=new URL(config.url)
|
|
18
|
+
if(url.origin!==location.origin){
|
|
19
|
+
delete requestOptions.credentials;
|
|
20
|
+
}
|
|
17
21
|
try {
|
|
18
22
|
requestOptions.headers['mac_address'] = (window as any).glitter.macAddress;
|
|
19
23
|
requestOptions.headers['language'] = requestOptions.headers['language'] || Language.getLanguage();
|