I am using ionic to create a web app that works with a PHP API. Proxies are set in my ionic.config.json and work great when testing my app with ionic search. The problem is that when i’m trying to set it to production on an apache server (building with ionic cordova build browser --prod --release), it looks like the proxies are not working anymore.
this is the error I get:
Failed to load resource: the server responded with a status of 404 (Not Found) /api/auth/check.php
Does the proxy works on browser builds ? Is there an other way to deal with CORS issues in browser build ?
It doesn’t work with ionic cordova run either
edit 2 :
Refreshing the page gave me this error :
polyfills.js:3 POST https://my-webserver-url/api/auth/check.php 404 (Not Found)
It looks like the proxy is not working.