Microsoft Edge: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd

后端 未结 2 1371
小蘑菇
小蘑菇 2020-12-20 11:54

I have a single page html and Angularjs file.

App.js

angular
.module(\'vod\', [])
.controller(\'moviesController\', [\'$http\', function ($http) {
         


        
相关标签:
2条回答
  • 2020-12-20 12:41

    There are several things which can go wrong.

    Try adding the Content-type: application/json; charset=utf-8 header.

    Edge does not like VPN and mixed networks. This is probably not the case for you, but good to know.

    More to read:

    1. SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3

    2. Why does Microsoft Edge open some local websites, but not others, where the domain name is routed to 127.0.0.1 in hosts file

    0 讨论(0)
  • 2020-12-20 12:44

    This is an old post but maybe a fresh reply will help somebody learn in case similar problems are found today. In Windows 10 all modern apps runs in AppContainers that are forbidden by isolation rules to send network traffic to the local computer. Edge is regarded as a modern app as seen here: https://blogs.windows.com/msedgedev/2015/05/11/microsoft-edge-building-a-safer-browser/

    For purposes of development you may find tools like ngrok or loopback helpful. I am sure app isolation rules change over time so try to stay up to date with the current limits and realize you are running in an AppContainer if you are using the Edge browser.

    0 讨论(0)
提交回复
热议问题