Skip to content

Commit 4d61410

Browse files
committed
[bug] 在https网站的时候, key/token 使用失效
1 parent 5948ede commit 4d61410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/security/SecurityManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ export class SecurityManager {
351351
if (!url) {
352352
return url;
353353
}
354-
var patten = /http:\/\/(.*\/rest)/i;
354+
// var patten = /http:\/\/(.*\/rest)/i;
355+
var patten = /(http|https):\/\/(.*\/rest)/i;
355356
var result = url.match(patten);
356357
if (!result) {
357358
return url;

0 commit comments

Comments
 (0)