|
在x5系统中ajax调用其他系统的接口,如何解决跨域问题
$.ajax({
type: "GET",
url: 'http://testauth.asas.com:8080/idp/oauth2/authoze?redirect_uri=http://172.0.0.1:8080&state=hahaya&client_id=bgrqht&response_type=code',
dataType: 'json',
async: false,
cache: false,
success: function(data){
debugger
},
error: function(data){
debugger
// throw justep.Error.create("加载数据失败");
}
});
跨域,直接进入error了
|
|