I'm trying to load an external html page using ajax, but I can't get a response like:
example.com
My code for the request is:
$.ajax({
type: "GET",
url: "https://login.yahoo.com/",
dataType: "json",
}).success( function( data ) {
$( 'div.ajax-field' ).html( data );
});
I always get this error why?
MLHttpRequest cannot load https://login.yahoo.com/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:8000/dashboard' is therefore not allowed access.