473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Same origin policy in IE !

Hi all.
I m searching for the equivalent of :

try {

netscape.security.PrivilegeManager.enablePrivilege ("UniversalXPConnect");
} catch (e) {
alert("Permission UniversalXPConnect denied.");
}

(that works for mozilla based browsers) in Internet Explorer.
The code above asks to the user to trust the script, so extends
privileges such as same origin policy.
I have a page on local disk with 2 frames : A is a local page, B is on
a server (for example http://www.google.com). I want A to access B
properties (for example parent.B.location.reload() ); on Firefox it
works perfectly (of course only after the consense of the user i.e me),
but in IE I get a "Permission denied error".
Thanks,
Fabio

May 21 '06 #1
4 3684
VK

Turko wrote:
Hi all.
I m searching for the equivalent of :

try {

netscape.security.PrivilegeManager.enablePrivilege ("UniversalXPConnect");
} catch (e) {
alert("Permission UniversalXPConnect denied.");
}

(that works for mozilla based browsers) in Internet Explorer.
The code above asks to the user to trust the script, so extends
privileges such as same origin policy.
I have a page on local disk with 2 frames : A is a local page, B is on
a server (for example http://www.google.com). I want A to access B
properties (for example parent.B.location.reload() ); on Firefox it
works perfectly (of course only after the consense of the user i.e me),
but in IE I get a "Permission denied error".


I presume that your HTML page with the code for Firefox is properly
signed with a valid authority certificate. Otherwise (unless run from
local drive) it will never ask user for extra privileges. (Three-tiers
schema: properly signed code gets /the privilege to ask for extra
privileges/ and on the next step then the user actually either grants
them or declines the request).

IE doesn't have the concept of signed HTML pages/ JScript programs
whatsoever. You have to write an ActiveX (.ocx file) on say C++/C# and
still properly sign it with a valid authority certificate.

May 21 '06 #2
Yes, my page runs from local drive.
But, how could I do an authority certificate?

And is it dificult writing an activeX? I m a bit familiar with C
language and Java.

Thx

May 21 '06 #3
VK

Turko wrote:
Yes, my page runs from local drive.
But, how could I do an authority certificate?
You cannot "do" an authority certificate. You have to buy the
certificate from one of authorities considered as being such by UA's.
Thawte certificates are traditionally the best suited ones for code
signing, Verisign the next (despite Thawte and Verisign are really the
same Verisign company, these are two different certificates).

You also can create a self-signed certificate (be your own authority),
but in such case you'll have to add such certificate on each involved
machine.

All together is very far really from the JavaScript programming. Ask at
<comp.lang.java.security> (Due to the signed applet biz in the past
Java users are the most familiar with boring signing tools/certificates
matters)
And is it dificult writing an activeX?


Not overly difficult. Ask for start at
<microsoft.public.windows.inetexplorer.ie6.browser >

What is your final aim anyway? Maybe it can be arranged in some lesser
complicated way (or cannot be arranged at all no matter what).

May 21 '06 #4
Thanks for reply.
My aim was understanding how IE and Firefox do the sop security issue.

May 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jon | last post by:
I have links that open https secondary windows using: window.open(url, windowName); The windowName is always the same but I keep getting new windows. Is it possible for each of the links to...
2
by: Randy Webb | last post by:
Is the HTTPRequest Object in IE limited to the Same Origin Policy when run from a webserver? <URL: http://www.hikksworld.com/HTTPRequestIE.html /> When run in IE, throws a "Permission Denied"...
1
by: success_ny | last post by:
I cannot seem to find the answer to this rather simple question. Pardon me if it looks illogial or silly. Can I create a frame in the same page without referring to other html files? I.e., I...
1
by: muskaran | last post by:
I am facing 'Cross Domain Security' within Frame.Its the 'Same Origin Policy ' issue. I have a frame which adjusts its height according to the height of the document.This works fine for all types...
7
by: Gary | last post by:
Hi i'm exploring a tutorial stylesheet which uses the following code #header ul li a { .... line-height: 0.8em !important; line-height: 1em; .... }
7
by: funktacular | last post by:
Hi- I have script that works fine when I run it from a server, but I need to be able to load the page and have it work from my hard drive. However, it seems the when the url changes from...
2
by: Jeremy J Starcher | last post by:
On a web-forum I chat at, there are multiple lists of posts. The forum, hosted on multiple servers, allows us to upload graphics and Javascript to "skin" our particular forum. In addition, the...
2
by: jackchang1 | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.