我想在角度的http調用中發送文檔cookie。 我已經使用withCredentials,但它只能發送瀏覽器級別的cookie。 我也使用跨域,但它不能正常工作。 下面是我正在使用的代碼。在ajax角度發送餅乾
$http({
method: 'GET',
url: url,
xhrFields: { withCredentials: true },
crossDomain: true,
header:{ 'SHOPSESSIONID' : sessionStorage.getItem("SHOPSESSIONID") }
}).success(function(data){
return data;
}).error(function(data){
return data;
});
是什麼 – Aravind