前言:关于跨域CORSajax
1.没有跨域时,ajax默认是带cookie的跨域
2.跨域时,两种解决方案:服务器
1)服务器端在filter中配置cookie
详情:http://blog.csdn.net/wzl002/article/details/51441704.net