(function(){
$(document).ready(function(){
$.getJSON('http://dev.markitondemand.com/MODApis/Api/v2/Quote/json?symbol=AAPL&callback=?', function(){console.log("function was run");});
});
}())
I recently delved into working with APIs. However, I am facing an issue that I can't seem to solve. When I paste the URL in my browser, the JSON data loads perfectly fine. But when I remove the '&callback=?' part at the end of the URL (which is what I would do for regular JSON), I encounter the following error message:
XMLHttpRequest cannot load . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
I need to resolve this issue urgently as it is related to a coding camp application due by the weekend. If the technical details are too complex for me to grasp at my current level, I would greatly appreciate simple instructions on how to retrieve the JSON file from their server and convert it into a usable object in Javascript. Thank you for your assistance :)