|
发表于 2020-4-17 10:53:57
|
显示全部楼层
如果新版本4.3.5配置O2oa云,登录主页无法登录。可以试一下这种临时修改方案
修改o2server/servers/webServer/o2_lib/mootools mootools-1.6.0_all.js 第6422行,新增一个临时修复逻辑
var isWithCredentialsSync = isWithCredentials && !this.options.async;
//-----------------临时修复url拼接异常问题
//如果url包含-http 但是没有域名则去除http头部,星号修改为公司自己的域名或者IP
if(url.indexOf("http://")>=0 || url.indexOf("https://")>=0){
if(url.indexOf("oa.**cn")<0){
//url=url.replace("http://","");
url=url.replace("https://","https://oa.**.cn");
}
}
xhr.open(method.toUpperCase(), url, this.options.async, this.options.user, this.options.password); |
|