efront 3.28.0 → 3.28.1
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/coms/basic/cross_.js +9 -5
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/basic/cross_.js
CHANGED
|
@@ -286,16 +286,18 @@ function cross_(jsonp, digest = noop, method, url, headers) {
|
|
|
286
286
|
}
|
|
287
287
|
location = getRequestProtocol(url) + "//" + location;
|
|
288
288
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
if (
|
|
289
|
+
if (!redirected) redirected = [];
|
|
290
|
+
headers = _headers;
|
|
291
|
+
url = location;
|
|
292
|
+
var r = method + " " + url;
|
|
293
|
+
if (redirected.indexOf(r) >= 0 || redirected.length > 10) onerror(xhr);
|
|
294
|
+
else redirected.push(r), fire();
|
|
294
295
|
break;
|
|
295
296
|
default:
|
|
296
297
|
onerror(xhr);
|
|
297
298
|
}
|
|
298
299
|
};
|
|
300
|
+
var redirected = null;
|
|
299
301
|
var cross = this;
|
|
300
302
|
var xhr = cross(callback, onerror);
|
|
301
303
|
var send = xhr.send;
|
|
@@ -327,6 +329,8 @@ function cross_(jsonp, digest = noop, method, url, headers) {
|
|
|
327
329
|
};
|
|
328
330
|
var fire = async function (code) {
|
|
329
331
|
if (!~requests.indexOf(xhr)) return;
|
|
332
|
+
xhr.method = method;
|
|
333
|
+
xhr.url = url;
|
|
330
334
|
xhr.encrypt = code;
|
|
331
335
|
var isform = /^f/i.test(method);
|
|
332
336
|
if (isform) {
|