双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

百思不得其解,IE浏览器不发送cookie,其它浏览器都没问题!

My_Love My_Love 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
为什么IE不发送cookie,其它浏览器都没问题,试了几台PC,IE7、8、9、10都这样。
麻烦大侠帮忙看看,问题在哪儿?

下面是IE开发者工具的HTTP记录:

这是登录
----------
键 值
请求 POST /api/login HTTP/1.1
Accept */*
Content-Type application/json
Referer http://mytest.f3322.org:5678/mmapi.html
Accept-Language zh-CN
Accept-Encoding gzip, deflate
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Host mytest.f3322.org:5678
Content-Length 29
DNT 1
Connection Keep-Alive
Cache-Control no-cache

键 值
响应 HTTP/1.1 200 OK
Server eHttpd/1.0.1 (mytest@sina.com)
Set-Cookie SessionID=WXX33CC5CB16E; domain=mytest.f3322.org; path=/
Connection keep-alive
Keep-Alive 30
Content-Length 10
Content-type application/json
Expires Fri, 10 Apr 2008 14:00:00 GMT
Pragma no-cache


--------------------------------------------------------------------------------------------------------------
这是取数据
-------------
键 值
请求 GET /api/deviceType HTTP/1.1
Accept */*
Referer http://mytest.f3322.org:5678/mmapi.html
Accept-Language zh-CN
Accept-Encoding gzip, deflate
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Host mytest.f3322.org:5678
DNT 1
Connection Keep-Alive
----现在的问题是IE浏览器没有发送cookie!!!

键 值
响应 HTTP/1.1 200 OK
Server eHttpd/1.0.1 (mytest@sina.com)
Connection keep-alive
Keep-Alive 30
Content-Length 11
Content-type application/json
Expires Fri, 10 Apr 2008 14:00:00 GMT
Pragma no-cache

-----------------------------
如果不用域名,用ip地址,ie又发送cookie,真的很头疼的问题...
...全文
评论 6
收藏 已收藏
分享
返回顶部
My_Love
JavaScript 87,984 成员 224,680 内容