Visual Studio, Ripple Emulator and CORS/Cross Domain Ajax

前端 未结 3 1842
时光取名叫无心
时光取名叫无心 2020-12-11 18:34

I have an issue with Visual Studio when working on a multi device hybrid app. When I try do to an ajax call to an external webservice, and get some errors in ripple. (Cross

3条回答
  •  既然无缘
    2020-12-11 19:05

    As an additional note to disabling Cross Domain Proxy in the Ripple emulator...

    If you are calling an API, like Azure Mobile Apps API, dont forget to allow external calls to the API by setting the "Access-Control-Allow-Origin" flag to "any".

    In my scenario I am developing an Ionic v1 App using Azure Mobile App as the backend.

    In web.config >>

    
     
       
         
           
         
       
     
    
    
    

提交回复
热议问题