Access-control-allow-origin Problems On The Same Domain
How is it possible that when I try to make an XMLHTTPRequest from a javascript file to a web service located on the very same domain, I get: Origin http://mydomain.com is not allow
Solution 1:
It probably is because of the missing www. If you test with yourdomain.com and your site is at www.yourdomain.com it is concidered cross-domain and cross-domain calls are not allowed by default.
Post a Comment for "Access-control-allow-origin Problems On The Same Domain"