Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

CORS issues with Ionic 4 and iOS device

$
0
0

@rafarco wrote:

Hello,
I’m migrating my app to Ionic 4 and I’m getting CORS errors which didn’t happen with Ionic 3. In particular, console shows:
Origin ionic://localhost is not allowed by Access-Control-Allow-Origin.
And I changed the server headers with the following lines on PHP:

header("Access-Control-Allow-Origin: ionic://localhost");
header("Access-Control-Allow-Origin: http://localhost");

What else do I have to change? Or is it another issue? I’m using Angular’s HttpClient to connect to the server.
Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



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