Security-glitch in IE Using XMLHttp?

D

Dag Sunde

I have this little test-page using Ajax to
grab a simple date-string from the server.
This works as expected in IE, FF, NS, etc.

This morning I changed the path to my little
server-side "date-script", so it pointed to
another web-server. Ie. Not the same site
as the page containing my ajax script came from.

As expected, FF, Opera and NS now failed with
a "security permission", *but* IE plodded
happily along and executed the now cross-domain
call and gave me the result. No errors, no warnings...

Is this a well nown fact, or have I discovered
something here?
 
J

Jim Ley

As expected, FF, Opera and NS now failed with
a "security permission", *but* IE plodded
happily along and executed the now cross-domain
call and gave me the result. No errors, no warnings...

It's a security setting "Access Data Sources across domains" you've
got lowered security for whatever zone you accessed the page in.

Jim.
 
D

Dag Sunde

Jim Ley said:
It's a security setting "Access Data Sources across domains" you've
got lowered security for whatever zone you accessed the page in.

Ah... Interesting...

Is there similar settings in any of the other browsers?
(Mainly interested in FF, NS7.x and Opera).

This may be an interesting feature in intranet applications.
 
M

Martin Honnen

Dag said:
Is there similar settings in any of the other browsers?
(Mainly interested in FF, NS7.x and Opera).

No, first of all neither Firefox (current versions) nor Netscape 7 have
any security zone model and frankly allowing such access in general
seems not a good idea.
For IE you can set that setting for different zones so you could savely
configure the normal internet zone but for intranet zone or trusted
sites you could lower the settings.

If you wanted to do anything with script in Mozilla browsers that is not
allowed by normal settings then you would need to use signed script and
then that script still needs to ask the user for certain rights which
pops up a dialog where the user can grant the right or not. Script
signing requires a certificate which a certificate authority usually
charges money for every year you need the certificate.
Mozilla also as far as I am currently aware does not distiguish between
http://localhost/ access and access to real remote hosts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,265
Messages
2,571,071
Members
48,771
Latest member
ElysaD

Latest Threads

Top