I have AJAX code for my API. Chrome is OK, but IE is not working. When I changed the document mode of IE 8 to IE 10/Edge, it worked.
NB: We use IE 11, but the default Document mode is IE 8.
How can I fix this?
Here is the error I found, when I debugged:
Object doesn't support property or method 'addEventListener'