請問為啥同樣的代碼,左側(cè)請求不帶cookie?
???btn3.onclick=()=>$.ajax({
????????????????????type?:?"get",
????????????????????url:?"http://server.com/getCookie",
????????????????????xhrFields:{
????????????????????????withCredentials:true
????????????????????},
????????????????????crossDomain:?true,
????????????????????success:?function(json){
????????????????????????result?=?json;
????????????????????}
????????????????});
2020-11-06
https://blog.csdn.net/qq_38527695/article/details/104899751?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param