(ERROR MESSAGE: XMLHttpRequest cannot load http://xyz.com/123. Origin null is not allowed by Access-Control-Allow-Origin.)
Unfortunately I can't adjust the server to deliver CORS or JSONP. Is there a way to set a proberty on the htmlDrawable to allow the ajax requests?
over 3 years ago
The Access-Control-Allow-Origin error message indicates that you are trying to fetch content through AJAX that is coming from a different domain than you are currently on.
To fix this, there are two thing you can do:
1.) Allow the origin domain you are sending the AJAX request from in your server configuration (if you use Apache, you need to set this in your VirtualHost), or
2.) Make the original and the requested domains the same (i.e. host the HTML page you are loading under the same domain you are serving the AJAX requests from).