ajax、axios局部刷新,跨域不能重定向,且会报错。IP相同时不报错,可以返回重定向页面的代码。需要重定向时可以用form表单提交、location的href,这两种属于全部刷新
跨域解决一:response.setHeader("Access-Control-Allow-Origin","*");response.setHeader("Access-Control-Allow-Headers","Content-Type,Content-Length,Authorization,Accept,"+"X-Requested-With,yourHeaderFeild");re