没有在Internet Explorer 9 AJAX请求会话Cookie [英] No Session Cookies on Internet Explorer 9 AJAX requests

查看:187
本文介绍了没有在Internet Explorer 9 AJAX请求会话Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆