Angular 6 IE with Azure 11 XMLHttpRequest: Network Error 0x80070005, Access is denied

0

I have an angular app sending http post request to Azure apim.

It works fine in Chrome and FF but fails in IE 11. I have looked at other solutions but nothing worked.

CORS policy is set to allow all header and all methods.

I am getting this kind of error in IE network TAB. SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd.

I see GET request with 200 instead of POST, also there is nothing in the request and response headers.

enter image description here

azure
http-headers
angular6
cross-domain
azure-api-management
asked on Stack Overflow Jan 18, 2020 by Zeus • edited Jan 20, 2020 by sideshowbarker

1 Answer

0

Apparently it is a Windows 10 bug in the HTTP stack that is now solved in Windows 10 version 1803 (April 2018). So normally this problem will disappear over time for people/companies using auto updates of Windows, used Windows 10 versions WorldWide.

We tested this on an older and newer version of Windows 10 and it is indeed solved.

Some workaround could be:

1.Disable HTTP/2 for IE and Edge and use HTTPS (server side change).
2.Use GET (if possible)
3.Do PUT also has this problem?
4.Do some retries if no response headers are returned
5.Accept that IE/Edge users will be punished ;-)

answered on Stack Overflow Jan 20, 2020 by Joey Cai

User contributions licensed under CC BY-SA 3.0