Same Origin Policy
Get content result from same domain (relative path)
$.get('/SOP/GetContentResult', function (result) {
alert(result);
});
(There will be alert popup with message from the server)
Get content result from same domain (absolute path)
$.get('/SOP/GetContentResult', function (result) {
alert(result);
});
(There will be alert popup with message from the server)
Get content result from other domain
$.get('https://www.google.com/', function (result) {
alert(result);
});
(There will be no alert popup because we can't make AJAX call to Google.com)