一个页面需要部署在服务器上
同样的一个页面,
ios端放在本地pandora文件下请求正常
但放到服务器上缺不行
为什么同样的代码发请求的请求头不一样啊
function loadNews() {
vueApp = utils.getVue("#newsList");
detailView = utils.windows.preloadView("newsDetail.html");
mui(".mui-content").on("tap", ".mui-table-view-cell", function() {
var newsId = this.getAttribute("data-wid");
utils.windows.fire(detailView, "onloaded", {
Id: newsId
});
detailView.show();
});
var url = utils.ws.SerHomePageDataWebSe() + "/GetNewsSinUp";
showMore.loaded(url, 10, {
typeid: "3"
});
}
在服务器上的请求头:
POST /Service/WebService/HomePage/HomePageDataWebService.svc/GetNewsSinUp HTTP/1.1
Host **
Accept /
Content-Type text/xml;charset=utf-8
Connection keep-alive
Cookie ASP.NET_SessionId=ian2vokbsxb0i34giqyrymmy
User-Agent Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 FATech/P/2.6.9.31153 NetType/WIFI Html5Plus/1.0
Accept-Language zh-cn
Accept-Encoding gzip, deflate
Content-Length 72
在本地的请求头:
POST /Service/WebService/HomePage/HomePageDataWebService.svc/GetNewsSinUp HTTP/1.1
Host ***
Content-Type text/plain;charset=UTF-8
Origin file://
Cookie ASP.NET_SessionId=2svrlwwo1e0exgls22jsxqsp
Connection keep-alive
Accept /
User-Agent Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 FATech/P/2.6.9.31153 NetType/WIFI Html5Plus/1.0
Accept-Language zh-cn
Accept-Encoding gzip, deflate
Content-Length 68
0 个回复