score:1

Accepted answer

You need to read about the same-origin-policy. You can only make ajax calls to the same host that the page you are on came from. There are a few ways to work around this (like using JSONP), but you will have to code for and accept the limitations of those work-arounds.

score:2

You are trying to perform a forbidden action: if such a call was legal, it would open a security hole, allowing malicious code to access undesired URLs silently...


Related Query

More Query from same tag