Subject: AJAX can not do cross-domain access
Author: WebSpider
In response to: AJAX Security Issue -- how to get rid of "This page is accessing information that is not under its "
Posted on: 03/24/2010 12:27:18 PM
This is not a problem of AJAX, it's the problem of JavaScript which bears the same domain policy, as in Applet. That means you can not do cross-domain access via AJAX to get data from the third-party URL. For example, you have an website with domain foo.com and you want to integrate Yahoo's finance information into your page content. You can not make it work by directing access it via AJAX.
Two solutions:
1) Workaround solution: Use iframe instead
2) Straight Solution: Use AJAX via a proxy
>
> On 03/24/2010 11:52:19 AM WebSpider wrote:
When AJAX is retreiving the data from the third-party url, you may see the warning message like this:
"This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?"
Any idea of how to get rid of it?
References: