Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

CORS on device (build version)

$
0
0

Im having problem on the API request,
Im having Cross Origin Error
Build it using ionic cap build android --targe=<device id>
Already tried

  • adding proxy on ionic.config.json and changes the baseURL to api/v1 but it return 200 status but it does not connect to the api only blank white page
  • Added headers to the php also but still no luck
  • Added headers to axios also
    image
    image

PHP

This is the API Call when I did not add baseUrl to axios baseURL but it displays empty and Im guessing it does not connect to the API


3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>