go to  ForumEasy.com   
JavaPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » JavaScript » AJAX Security Issue -- how to get rid of "This page is accessing information that is not under its "
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: AJAX Security Issue -- how to get rid of "This page is accessing information that is not under its "
WebSpider
member
offline   
 
posts: 147
joined: 06/29/2006
from: Seattle, WA
  posted on: 03/24/2010 11:52:19 AM    Edit  |   Quote  |   Report 
AJAX Security Issue -- how to get rid of "This page is accessing information that is not under its "
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?

 Profile | Reply Points Earned: 0
WebSpider
member
offline   
 
posts: 147
joined: 06/29/2006
from: Seattle, WA
  posted on: 03/24/2010 12:27:18 PM    Edit  |   Quote  |   Report 
AJAX can not do cross-domain access
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

 Profile | Reply Points Earned: 0

 
Powered by ForumEasy © 2003-2005, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.