I am trying to code small javascript bot that works on my chrome developer console.It involves grabbing few external links.But I get the following error
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'domain.com' is therefore not allowed access.
I know its not possible to load like this via php script or via website.I just want to know if we can change origins or disable this in chrome developer console so I can test for myself in my computer.I tried below code
var ajaxResponse;
$.ajax({
type:'GET',
url:'http://somedomain.com',
headers:{
'origin': 'https://somedomain.com'
},
success: function(response){
ajaxResponse = response;
}
});
I just wanna know how to disable this in only in my chrome browser.