我$.ajax在同一个域上有一个请求,我想读取cookie.它不断返回null.
$.ajax({
type: 'GET',
url: myUrl,
success: function(output, status, xhr) {
alert(xhr.getResponseHeader("MyCookie"));
},
cache: false
});
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?我正在使用Chrome.