Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230478

CORS Issue in browser build

$
0
0

Hello,

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 ?

edit :
It doesn’t work with ionic cordova run either


Viewing all articles
Browse latest Browse all 230478

Trending Articles



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