I am getting the following error when i try to execute send some values via SenchaTouch to the web service. What does this mean, and how can i solve this? The remaining of my code can be found at this SO post
XMLHttpRequest cannot load http://testWebService/service/. Origin http://localhost is not allowed by Access-Control-Allow-Origin.
note: I found this link, but it still didn’t help.
If you are planning to run your application as a web application, you have to make sure your web service is in the same domain as your application.
Try this if you are planning to deploy sencha touch through phonegap but want to debug on your browser.
Using chrome,
to disable Cross-site scripting security:
Disable same origin policy in Chrome
Or using safari : (for this method http://localhost won’t work)
Safari does not have XSS security for local files.
Hope it helps.
Regards,
Steve0hh