Re: SOAP requests between domains
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Eugene Prokopiev wrote:
> Martin Honnen wrote:
>
>> Yes, but calling
>> netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead')
>>
>> should not be done then either, the server needs to have the the file
>> to specify which domains are allowed access, Mozilla checks whether
>> the server has the file and allows access and then the access is
>> allowed, no need (and no help) to call enablePrivilege then.
>
>
> It's nice, but how can I use server-side checking?
I am not sure what you are after with "server-side checking" now, I have
simply been trying to tell you that you do not need to call
enablePrivilege if you want to access a web service on a server
different from the one the page with your script is loaded from.
The Mozilla web services page
<http://www.mozilla.org/projects/webservices/>
for instance links to this example
<http://mgalli.com/wsdom/moz-crossportal/fs-4/>
hosted on mgalli.com which is able to call a web service on
<http://www.xmethods.net/>
without any need for enablePrivilege, see the source file
<http://mgalli.com/wsdom/moz-crossportal/fs-4/wsdl-babel.js>
That is possible as the file
<http://www.xmethods.com/web-scripts-access.xml>
allows all access.
--
Martin Honnen
http://JavaScript.FAQTs.com/