I have an $.ajax() request that queries currency exchange rate information from another web server, which is the reason (I believe) for which I am getting an “Access Is Denied” error on the $.ajax() call.
Is there a way to permit this type of activity?
Yes, you could use JSONP if the remote server can support it (works only with GET requests and it works with the .ajax function as well). Another option is to create a bridge server script on the same domain.
Here’s an article that may help you get started.
Here’s how it works:
The server must send the data using the following format:
where
callbackmust be configurable.So basically jQuery includes a
scripttag inside the DOM:and the
someRandomNamefunction will be executed and passed the JSON object.