URI 中含有禁止使用的字符... IE

发布于 2024-11-01 02:34:43 字数 564 浏览 1 评论 0原文

我的 IE 遇到了这个新问题,它在 Internet Explorer 中不断收到此 URI 不允许的字符错误。

调用是通过 AJAX 进行的,它在 LOCALHOST 中工作正常,但在服务器上,它根本不起作用。

被调用的 url 示例(抱歉,为了披露问题,必须 xxxx 某些部分)

http://sandbox.xxxxxxxxx.pt/beta1/gestao/xxxxxxx_ctr/?%23&_=1302607702688 (this one doesn't work in IE)

http://localhost/xxxxxxxxx/gestao/xxxxxxx_ctr/?%23&_=1302608090193 (this one does)

这些允许的 uri 字符对于“好”浏览器来说就像一个魅力。

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\+\-';

有谁知道这个问题的解决方案并且愿意帮助我吗?

谢谢。

I have this new problem with IE, it keeps getting this URI disallowed characters error in Internet explorer.

The calls are made through AJAX and it works fine in the LOCALHOST, but on the server, it doesn't work at all.

Examples of the url called (sorry, had to xxxx some parts for disclosure issues)

http://sandbox.xxxxxxxxx.pt/beta1/gestao/xxxxxxx_ctr/?%23&_=1302607702688 (this one doesn't work in IE)

http://localhost/xxxxxxxxx/gestao/xxxxxxx_ctr/?%23&_=1302608090193 (this one does)

These permitted uri chars work like a charm for the "good" browsers.

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\+\-';

Does anyone happens to know the solution to this problem and would be kind enough to help me?

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾`听者〃 2024-11-08 02:34:43

解决了。

添加 ?# 是因为 jQuery ajax 请求中的“cache”选项设置为 false,因此 IE 缓存没有启动。

只需删除 AJAX 请求中的缓存阻止选项即可添加了一个通过 post 发送的“随机”数字,以防止 IE 缓存。

至少目前它运行良好。

谢谢你们花时间来帮助我。

Solved it.

the ?# was being added because the "cache" option was set to false in the jQuery ajax request, so the IE caching didn't kicked in.

Simply removed the cache preventing option in the AJAX request and added a "random" number to be sent via post, to prevent IE cache.

At least for now it's working fine.

Thank you guys for the time spent trying to help me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文