Wednesday, July 31, 2019

javascript - from origin 'null' has been blocked by CORS policy: Cross origin requests

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-extension, https.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...