403 error detection when using ajax call in IE

I am loading pages using ajax. Pages load correctly in all browsers except IE, which throws a 403 error on ajax request. However, it works fine in the local host, even in IE. (He used to work correctly, not sure when he started doing this).

You can check out my site at http://ptamzz.com . By clicking on any article, you will call an ajax request for content.

enter image description here

How to fix it? Since it receives an HTTP 403 response, no data is returned, so I cannot display my pages.

+4
source share
1 answer

Put this in your HTML header:

<meta http-equiv="X-UA-Compatible" content="IE=9"></meta> 

Without a line, IE <9 will work on the Apache Linux server, and many functions will not work correctly in IE (even if they work with the application on the local Windows computer or in another browser.

0
source

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


All Articles