没有在Internet Explorer 9 AJAX请求会话Cookie

编程入门 行业动态 更新时间:2024-10-15 08:22:15
本文介绍了没有在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

本文发布于:2023-11-07 23:44:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567757.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Explorer   Internet   Cookie   AJAX

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!