IONIC 3 CORS ISSUE

后端 未结 7 2384
小蘑菇
小蘑菇 2020-12-09 18:16

I am having a CORS issue with Ionic 3 when attempting to make GET calls to an API. I am using Ionic local server, running ionic serve in the command line for li

相关标签:
7条回答
  • 2020-12-09 18:59

    You can handle the CORS when debugging in browser by using CORS extension or by disabling the security of Chrome. But you need to handle the CORS when you debug in app on the server side, I was consuming woo-commerce API ,so i edited it as follows->

    1.Plugins->editor->woocomerceapi

    right after

    <?php**
    header(“Access-Control-Allow-Origin: *”);   
    

    2.Update File

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