403 error metaphor hash snippets with AJAX requests in IE

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

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

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

It works great. I cannot modify the existing hash fragment url structure. Any solutions / suggestions?

+2
source share
1 answer

Use a network debugger (for example, www.fiddler2.com) and determine what the difference is in the HTTP request, which leads to the server sending a different response. I assume that the method of receiving data from the hash leads to sending another request to the server between browsers (for example, includes "#" or missing "#"), and this forces the server to return 403 in IE.

0
source

Source: https://habr.com/ru/post/1392095/


All Articles