开发者

Hash fragments with forward-slash throwing 403 errors with AJAX requests in IE

I have a URL similar to: http://www.example.com/#!/test/

And an AJAX request that is handled when the hash fragment is /test/. The AJAX request is fine except in IE, where it throws a 403 error. It works fine in all other browsers.

开发者_StackOverflow中文版

Now, if I change the URL to: http://www.example.com/#!test/

It works just fine. I can't change my current hash fragment URL structure. Any solutions/suggestions?


Use a network debugger (e.g. www.fiddler2.com) and determine what the difference in the HTTP request is that results in the server sending back a different response. My guess is that the way that you're getting the data out of the hash results in sending a different query to the server between browsers (e.g. includes "#" or lacks "#") and that causes the server to return the 403 to IE.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜