Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Making xmlhttp requests to different server in same domain

partlycloudyDec 8 2005 — edited Dec 14 2005

Carl:

The XMLHttpRequest() object has a restriction to deny access to a fully qualified URL even though it is in the same domain.

So, for a page served from http://htmldb.oracle.com, if I do

var x=new XMLHttpRequest()
x.open("GET","http://oracle.com",true)

the x.open throws a Permission Denied exception.

Is there a way around this? I saw many hacks out there but nothing definitive and cross-browser. Most of them involved using the document.domain property and iframes and stuff. Is there a simpler way?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2006
Added on Dec 8 2005
14 comments
968 views