Cordova build gives NETWORK ERROR when hitting Laravel backend on *.test domain #17102
Unanswered
sakon54321
asked this question in
CLI - Capacitor / Cordova modes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I recently upgraded my quasar and I noticed I couldn't reach my API on http://projectname.test/api/ even though I'd changed nothing in the backend. After a lot of debugging the backend I figured out actually the problem was with the frontend.
Since I could hit the endpoint in the Safari browser in the simulator I knew it wasn't a dns issue. I could also hit the api endpoint in the app when I used the IP: 127.0.0.1:8000. It just wouldn't work with the URL.
And after I added the following lines to the src-cordova/config.xml file it all started to work as it did before.
Not sure if this is something new that I needed to add to the quasar.config.js or if this is a bug with the build process. Can someone suggest how this needs to be handled or if it is indeed just a bug in the build process please.
Beta Was this translation helpful? Give feedback.
All reactions