Origin is not allowed by Access-Control-Allow-Origin
Asked 07 September, 2021
Viewed 1.2K times
  • 62
Votes

I'm making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap).

The response from the server is the following:


  

XMLHttpRequest cannot load http://nqatalog.negroesquisso.pt/login.php. Origin http://localhost:8888 is not allowed by Access-Control-Allow-Origin.

How can I fix this problem?

18 Answer