when i run the ionic emulate -l -s -c , i get the app with proper ui, the search box is visible , when i hit the search button it still returns empty tables, i have a deadline and i can’t seem to get the app to work on the emulator while it works in the browser. what could be the problem? i can’t see any yellow and red warnings like the last time.
Since the apps makes one get request , i have added an alert() in the .success block, so that it pops up a message when the get request is successful, in browser it does only when the chrome CORS is enabled. The app is behaving exactly like the browser does when the CORS plugin is in OFF state.
The chrome inspection of the emulator session gave me these errors:
XMLHttpRequest cannot load http://attrack.in/api/Aman%20Aryan. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.56.1:8100' is therefore not allowed access.
Refused to load the script 'http://192.168.56.1:35729/livereload.js?snipver=1' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval'".
Long story short: app is still having trouble making the get request.
it would be very kind of you if you would assist me via team viewer since i have a deadline and this issue is the only thing keeping the app from being made