Post JSON ajax request with cors not working in IE10/Edge

后端 未结 2 1701
误落风尘
误落风尘 2021-02-07 08:21

Background:- I created a WCF service hosted in my local system IIS. Service exposes GET/POST method and cross domain enabled and can be accessed using https too

2条回答
  •  名媛妹妹
    2021-02-07 09:27

    It's not a long term solution, but you could check out https://cors-anywhere.herokuapp.com/ You can GET or even POST data without issue through this. Include their link before your URL so https://cors-anywhere.herokuapp.com/http://ateet3371/Service1.svc/postdata and set that as the URL value in your ajax. Like I said, it's not a long term solution but if it works then see what you can do from there.

    I wish I could be of more assistance. Good luck!

提交回复
热议问题