I have two pages (A and B), which are written by using django + jquery. and their urls are:
http://127.0.0.1:8081/temp1/ (pageA)
http://127.0.0.1:8082/temp2/ (pageB)
I want to crawl page B in page A's js script by using ajax(), and the js script is:
$("#tmp_button1").click(function(tmp_event) {
$.ajax({
url: "http://127.0.0.1:8082/temp2/",
async: false,
headers: {
"Access-Control-Allow-Origin" : "*"
},
error: function(request, error) {
alert(error);
},
success: function(response) {
alert(response);
}
});
});
unfortunately, I could not crawl the page B. is this a cross-domain action? if I want to crawl page B by using jquery, what should I do?
any help would be appreciated!