Re: Permission denied to call method XMLHttpRequest.open





francescomoi@xxxxxxx wrote:


I'm trying to build a webpage which calls another one (at a
different server) by using:
var req = new XMLHttpRequest()

I know some browsers (Mozilla and IE) doesn't allow it, and
shows this error:
Permission denied to call method XMLHttpRequest.open

Can I solve this issue? Thx.

IE has different security zones and for each zone you can configure whether access to data sources from a different server is allowed. So you would need your users to lower the normal security settings or put your site in the trusted zone for instance and configure that to allow such access.
With Mozilla you would need to use signed script and then request the privilege to access data from a different server, the browser user can then grant that privilege or not and save that setting.


Or you solve it on your server by setting up a "proxy" script that fetches the XML from the other servers so that the client-side script connects to your own server only.


--

	Martin Honnen
	http://JavaScript.FAQTs.com/
.



Relevant Pages

  • Re: FAQ Topic - How do I run a server side script? (2009-09-16)
    ... FAQ Topic - How do I run a server side script? ... an HTTP request", which appears to have been something that has needed ... Netscape browsers and since those browsers did not have IMG ...
    (comp.lang.javascript)
  • Re: FAQ Topic - How do I run a server side script? (2009-09-16)
    ... FAQ Topic - How do I run a server side script? ... Netscape browsers and since those browsers did not have IMG ... Probably once you get to dynamic DOM browsers in which IMG Elements ...
    (comp.lang.javascript)
  • Re: What is ASP.NET?
    ... deployed on IIS/Windows 2000 Server. ... HTML to the client. ... development is aimed at running on browsers, ... "web development is aimed at running on browsers, not the Windows OS" ...
    (microsoft.public.dotnet.general)
  • Re: FAQ Topic - How do I run a server side script? (2009-09-16)
    ... FAQ Topic - How do I run a server side script? ... Perhaps "how do I make a request to a server" would be a better ... Netscape browsers and since those browsers did not have IMG ...
    (comp.lang.javascript)
  • Re: Images Acting Like Submit Button with Rollover Effect
    ... You want to do a rollover effect without using script? ... You can't do it from server side. ... In IE you need script to make it work. ... in other browsers, but IE is too old to recognize that. ...
    (microsoft.public.scripting.vbscript)

Loading