You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2021. It is now read-only.
这是服务端的代码,已经设置了跨域允许,
String sOrigin = request.getHeader("Origin"); if (sOrigin != null) { response.setHeader("Access-Control-Allow-Origin", sOrigin); response.setHeader("Access-Control-Allow-Credentials", "true"); }
在ajax里设置了
xhrFields: {withCredentials: true},
已经测试过没添加jquery-weui.js时,能正常返回数据,但是添加了后就不行了。
控制台无返回,error函数打印的信息为:
status:0 ; readyState:0 ; textStatus:error
The text was updated successfully, but these errors were encountered: