I have a MEAN app and using ionic to make an app version of it.
It will share DB and server with MEAN and ionic app version so basically,
when ionic request something to server it is CORS…
[Error] Failed to load resource: Origin http://192.168.0.4:8100 is not allowed by Access-Control-Allow-Origin. (update_session, line 0)
[Error] XMLHttpRequest cannot load https://cloudtalk.herokuapp.com/api/sessions/update_session. Origin http://192.168.0.4:8100 is not allowed by Access-Control-Allow-Origin. (192.168.0.4, line 0)
[Error] XMLHttpRequest cannot load https://cloudtalk.herokuapp.com/api/posts. Origin http://192.168.0.4:8100 is not allowed by Access-Control-Allow-Origin. (192.168.0.4, line 0)
how should I make it right?