Every software development process consists of two essential components. FIRST, the hard work of developing the application. SECOND, the even harder task of making it compatible with the notorious Internet Explorer.
Currently, we have an AngularJS (v1.3.13)
application that was developed in Webstorm
without any server-side code. The application functions perfectly on Chrome and Firefox with no console errors. However, upon attempting to open the page on IE11 or IE9 (IE10 remains untested), the page fails to load. The console indicates two errors, one of which is an Access is Denied
message on
xhr.open(method, url, true);
within angular.js
.
I have scoured various online forums for solutions, but none seem to be effective. Here is what I have attempted so far:
- Hosting the app on
IIS
and modifying Handler Mappings to facilitate Cross-Domain requests on an Application pool of.Net v4.0
(suggested by a colleague). - Disabling cache for HTTP requests.
- Adding the domain to the trusted site category and including localhost/IP in the local intranet.
- Switching request type to
JSONP
and trying to includeAccess-Control-Allow-Origin
headers (with a value of*
). - Adjusting IE settings to permit Cross-Domain requests.
The error persists despite our best efforts. Even my colleagues encountered similar challenges when testing on their machines. If anyone has suggestions or advice, please share them with me.
It appears that the issue could be related to CORS, potentially requiring the implementation of XDomainRequest (XDR). However, as the error is within angular.js, I am uncertain about how to proceed. I am not an expert in this area, so any assistance would be greatly appreciated.
Error message screenshot:
Additionally, IE displays another error:
[$injector:nomod] Module 'ngLocale' is not available!
You either misspelled the module name or forgot to load it.
If registering a module ensure that you specify the dependencies
as the second argument.
http://errors.angularjs.org/1.2.16/$injector/nomod?p0=ngLocale
, which I am currently overlooking.
If you have any insights or recommendations regarding this issue, please do not hesitate to share them. Thank you.