84
rated 0 times
[
87]
[
3]
/ answers: 1 / hits: 15456
/ 10 Years ago, thu, july 31, 2014, 12:00:00
<script>
$.getJSON('url', function (data) {
console.log(Before:+data);
t = data;
console.log(After:+t);
});
</script>
When I am using getJson
method to get data from REST API , I am getting the error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at the url. This can be fixed by moving the resource to the same domain or enabling CORS.
How do I solve this? Please help.
More From » jquery