I'm working on a script that uses a jQuery JSON function to fetch some JSON from an API. An API that is not hosted on my web server. I don't understand how this is possible. I've learned AJAX at Treehouse and they clearly stated that this isn't possible because of the CDP.
So my question is, how is this possible? Because this isn't the first time I've encountered this. Another good example is this flightjs demo, which simply calls on the Instagram API.
So basically I'm really confused. Because I have no idea why this is possible. Is there something on their side which makes this possible?
I'm not looking for code samples. This is more of a theory type question.
Thanks :D