I need your help once again i was trying to make an Cross-domain request with ajax code:
function foo() {
$.ajaxSetup({
headers: { 'Access-Control-Allow-Origin': '*'}
});
$.ajax({
url:"http://www.website.com/page.php",
type: "GET",
crossDomain: true, // enable this
dataType: 'jsonp',
success:function(result){
}
});
}
And this is simple html button
<input type="button" value="test" onclick="foo()">
When i run the function the result is that:
Sorry for my bed english and thanks in advice fou our help.