• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2495
  • Last Modified:

Permission UniversalBrowserRead denied


Hi experts,

I am trying to access
http://localhost:8080/qc/SubjectCategoryListRetriever
from
http://localhost:8080/qc/index.html

and it throws an exception:  
Permission denied to call method XMLHttpRequest.open

so, i put the suggested fix:

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

alert("h1");
var transaction = YAHOO.util.Connect.asyncRequest('GET', "localhost:8080/qc/SubjectCategoryListRetriever", callback, null);
alert("h2");




but that just fails when trying to enable the permission.
can someone tell me what is going on?  

thanks
Daniel
0
dbrownell83
Asked:
dbrownell83
1 Solution
 
deepaknetCommented:
Daniel,

This needs to be called from signed scripts. Check out this URL for details: http://www.mozilla.org/projects/security/components/signed-scripts.html
0
 
dbrownell83Author Commented:
it turned out that i had to use relative paths instead of absolute paths, because it confuses 172.0.0.1 with localhost, as a crossdomain transaction
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now