Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

is IE6 violating the same-origin policy?

0 views
Skip to first unread message

jackc...@gmail.com

unread,
Aug 27, 2008, 12:43:02 PM8/27/08
to
I had a web page hosted in one domain. In IE6 it is able to request
data from another page in a different domain using XMLHttpRequest
object. It fails in IE7/Firefox/Safari. Can you confirm that the
XMLHttpRequest object in IE6 violate the same-origin policy? I am not
sure if it was my error or IE6's fault. Thank you!

Martin Honnen

unread,
Aug 27, 2008, 12:49:59 PM8/27/08
to

IE 6 does not have an XMLHttpRequest object, that was only introduced in
IE 7.
If you are talking about new ActiveXObject('Msxml2.XMLHTTP'), whether
that can make requests to different domains can be configured for each
security zone that IE has. I think with Windows XP SP 2 the default
setting for the internet zone is that such requests are not possible.
The settings for the intranet zone might be different.

--

Martin Honnen
http://JavaScript.FAQTs.com/

jackc...@gmail.com

unread,
Aug 27, 2008, 1:24:08 PM8/27/08
to
On Aug 27, 9:49 am, Martin Honnen <mahotr...@yahoo.de> wrote:

Thank you Martin! Yeah, you are right about
ActiveXObject('Msxml2.XMLHTTP'). For requests to different domains, I
enable the access to different domain for internet and I guess that is
why in IE6 the page A is able to get data from the page B in different
domain. But I still wondering why page A from local disk is able to
get data from page B in another domain.

0 new messages