A script from "http://localhost" was denied Univer

Discussion of general topics about Mozilla Firefox
Post Reply
Lost User 66751
Posts: 0
Joined: December 31st, 1969, 5:00 pm

A script from "http://localhost" was denied Univer

Post by Lost User 66751 »

Hi

I need to use XMLHttpRequest to get content from a remote url - a RSS feed.

Therefore I tried netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); before xhr.open but I get the error msg

Code: Select all

A script from "http://localhost" was denied UniversalBrowserRead privileges

How do I enable UniversalBrowserRead Privilege ?

Thanks
User avatar
jscher2000
Posts: 11774
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Post by jscher2000 »

I'm not sure of the relationship between UniversalBrowserRead and your XMLHttpRequest. Does this article help?
http://www.mozilla.org/projects/securit ... html#privs

Also, this thread from January might be relevant: XMLHttpRequest UniversalBrowserRead problem

Finally, if you want to have a moderator move this over to the mozillaZine Web Development board, you can request that over here: http://forums.mozillazine.org/viewtopic ... &start=510
Racer
Posts: 6108
Joined: November 18th, 2002, 11:07 am

Post by Racer »

This can be done via CAPS.
Post Reply