Cross Domain Ajax Results In 403 Forbidden
We are trying to make cross domain AJAX call via POST. If we directly try to access bbb.com from aaa.com it will ask for credentials. Only after giving credentials will we be able
Solution 1:
Sounds like a Cross Origin issue - https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS
You probably want to add something the headers returned from bbb.com, like so:
Access-Control-Allow-Origin: *
Hope that helps, Chris
Solution 2:
You can't make cross-domain AJAX calls.
If you wan't to get some infos from another domain as your own, you can do it server site with PHP for example and then make an ajax call to your own php script.
Another solution is to use JSONP
Solution 3:
ajax doesnt allow cross domain calls. use jsonp for this purpose. http://jsonp.jit.su/
Solution 4:
Ajax does not allow cross-domain calls. If you want to do it that way, you can make your Ajax code call PHP (or whatever you choose) code which can access bbb.com and you can return this data to the client.
Post a Comment for "Cross Domain Ajax Results In 403 Forbidden"