Skip to content

Commit ac918e4

Browse files
committed
APIAuto: 解决调不通跨域的 devin.ai 接口
1 parent 7a9f28c commit ac918e4

File tree

1 file changed

+2
-1
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/js

1 file changed

+2
-1
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/js/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7124,7 +7124,8 @@ https://github.com/Tencent/APIJSON/issues
71247124
url = (isAdminOperation ? this.server : this.getBaseUrl()) + url
71257125
}
71267126

7127-
var isDelegate = (isAdminOperation == false && this.isDelegateEnabled) || (isAdminOperation && url.indexOf('://apijson.cn:9090') > 0)
7127+
var isDelegate = (isAdminOperation == false && this.isDelegateEnabled)
7128+
|| (isAdminOperation && (url.indexOf('://apijson.cn:9090') > 0 || url.indexOf('.devin.ai') > 0))
71287129

71297130
if (header != null && header.Cookie != null) {
71307131
if (isDelegate) {

0 commit comments

Comments
 (0)