Ajax请求携带 cookie 同源:ajax会自动带上同源的cookie,不会带上不同源的cookie 不同源:前端设置withCredentials为true,后端设置Header的方式让ajax自动带上不同源的cookie