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.