When i am running my app into android emulator with -livereload or -consolelogs. I am getting “405 (Method not allowed )” error or when run app without any parameters the app working fine in emulator or real device. The API in on the amazon server
This is the error in console in device inspect
OPTIONS “My API URL” 405 (Method Not Allowed)
(index):1 XMLHttpRequest cannot load “My API URL”. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://192.168.56.1:8100’ is therefore not allowed access. The response had HTTP status code 405.