Internet Explorer 9的不发送会话cookie和我的AJAX请求。
Internet Explorer 9 is not sending session cookies with my AJAX requests.
当我发出认证请求通过AJAX我的API,它返回设置一个会话cookie的响应。后续调用通过AJAX的API不发送cookie回服务器。
When I issue an authentication request to my API via AJAX, it returns a response that sets a session cookie. Subsequent calls to the API via AJAX do not send the cookie back to the server.
该API位于同一台主机上。同样,常规的非AJAX页面请求,也没有显示会话cookie。我关闭了在Internet选项所有的隐私和安全设置。 Chrome浏览器正确发送的cookie。
The API is located on the same host. Similarly, regular non-AJAX page requests also do not show the session cookie. I turned off all privacy and security settings in Internet Options. Chrome sends the cookies properly.
如何让IE浏览器返回的饼干?谢谢!
How do I get IE to return the cookies? Thanks!
推荐答案我试图访问的URL中使用下划线字符(_)。这是一个无效的URL,因此Internet Explorer不接受饼干正常。修复此问题解决了我的实例。
The URL I was attempting to access used an underscore character ('_'). This is an invalid URL and so Internet Explorer does not accept the cookies properly. Fixing this solved my instance of the problem.
更多推荐
没有在Internet Explorer 9 AJAX请求会话Cookie
发布评论