from origin 'null' has been blocked by CORS policy: Cross origin requests [duplicate]
问题 This question already has answers here : “Cross origin requests are only supported for HTTP.” error when loading a local file (28 answers) Closed 1 year ago . This error occurred while calling up JSON. I don't know why this error is happening. $.getJSON(url, function(data){ console.log(data); }); Error: Access to XMLHttpRequest at (this is JSON URL) from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome