Edge on Windows 10 32-Bit blocking ajax call to localhost with Network Error 0x2efd

后端 未结 5 1541
耶瑟儿~
耶瑟儿~ 2021-02-07 11:31

We have an app that uses SignalR to talk to scanner drivers locally that has been in production for a couple of years working on IE, Chrome and Firefox, which do not have a prob

5条回答
  •  渐次进展
    2021-02-07 12:35

    Your request is missing the following attributes, adding which should solve the problem.

    1. Request method: GET, POST, etc.
    2. Request content-type (header): application/json, etc.
    3. Request data-type (header): json, XML, etc.

    Also look at the following code snippet:

    type:"POST",
    contentType:"application/json; charset=utf-8",
    dataType:"json"
    

提交回复
热议问题