为了账号安全,请及时绑定邮箱和手机立即绑定

请问为啥同样的代码,左侧请求不带cookie?

http://img1.sycdn.imooc.com//5fa43b310001cb2212760973.jpg

   btn3.onclick=()=>$.ajax({

                    type : "get",

                    url: "http://server.com/getCookie",

                    xhrFields:{

                        withCredentials:true

                    },

                    crossDomain: true,

                    success: function(json){

                        result = json;

                    }

                });



正在回答

1 回答

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

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

请问为啥同样的代码,左侧请求不带cookie?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信