473,756 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permission denied to call method XMLHttpRequest. open

Hi.

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.

Jul 25 '05 #1
5 25435


fr**********@us a.com 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/
Jul 25 '05 #2
Is it possible to call a page from a different server into an iframe or
something and then getting the document somehow using javascript??

Jul 26 '05 #3
You can load anything you want into an iframe but you are not allowed to
read from it unless the content of the iframe is from the same domain.

-Steffan

in article 11************* *********@f14g2 00...legr oups.com,
ca**********@gm ail.com at ca**********@gm ail.com wrote on 7/25/05 6:49 PM:
Is it possible to call a page from a different server into an iframe or
something and then getting the document somehow using javascript??

Jul 26 '05 #4
Without full knowledge of httprequest() to create signed scripts and
hiding the impact to end users, can you provide more detail on the
proxy script. Also, is this a change to the destination web server,
i.e. one change corrects this for all end users? I'm performing a
httprequest on the same local server but an getting this error message.
It does not appear when I test via localhost in the url.

Jul 30 '05 #5
Sorry, got it. I was using CFAjax and found what the problem was in
their BB.

Jul 30 '05 #6

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

Similar topics

2
6538
by: dx27s | last post by:
Hi all, I'm working with the XMLHttpRequest object. I receive the following error message: "Permission denied to call method XMLHttpRequest.open" This occurs in Firefox only. IE works fine. From my research so far, it seems like this is a security issue related to the fact that I am trying to access a url on a second server. Both servers are under my control, however. Is there a way to get around this
1
896
by: vikas.khengare | last post by:
Hi Friends.... I have AJAX code which giving "Permission denied to call method XMLHttpRequest.open" error. This error fired by FireFox 1.0 and IE 6 and with Tomacat 5.x. This code work very correctly on the other machine and giving correct output also. I am trying to fetch "html" pages from others server.
0
3922
by: robi | last post by:
Hello everybody, I am trying to call a webservice which is deployed in Apache axis using AJAX. I am using servlet to forward the request from client to the webservice and to return the response from the webservice to the client. The servlet runs in Apache Tomcat (http://localhost:8080).When I try to use AJAX to call the service through XMLHttpRequest from Apache Lenya(http://localhost:8888) it gives the security error in mozilla .I am...
2
4548
by: laredotornado | last post by:
Hi, I'm trying to use the xmlHttpReq object to contact a URL on my server. But I'm getting a JS "Permission denied" error at the indicated line. What does it mean and how can I get around it? function signUp(signUpElt) { if (!ValidEmail(signUpElt.value)) { alert("Please enter a valid email address."); return;
1
25106
by: Charlie | last post by:
I am trying to make an XMLHttpRequest which violates the default "same- origin"policy in Firefox. I checked the archives and found a method that should work but it does not. Below is the test code I isolated. I set signed.applets.codebase_principal_support true and seemed to get the UniversalBrowserRead permission but then the open still failed with the same old "Permission denied to call method XMLHttpRequest.open" error. Can someone tell...
0
975
by: wild_bunch | last post by:
bruce barker wrote: i open another page on the same domain as A but i still can't reach permission to change a from it although they are on the same domain... did i got the wrong idea from what you tried to say to me? --
4
3461
by: MrGado | last post by:
Running on Windows XP with Mozilla 2.0.0.4, I am experiencing a strange security issue. function loadXMLDoc(url,funcname) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) { alert("Permission UniversalBrowserRead denied.");
2
3778
by: johnnyb1726 | last post by:
Can someone please tell me why I get a "Permission denied to call method XMLHttpRequest.open" error? Here is my script: var xmlHttp function runSearch(element){ xmlHttp=GetXmlHttpObject(); if( xmlHttp == null ){ alert("I think it is time to upgrade your browser"); return;
8
5262
by: sbettadpur | last post by:
hello I am using xmlHttpRequest method in my application, this method is giving problem in the following browsers 1) Internet Explorer 7 2) Mozila Firefox(2.0.0.16) I got solution for Mozilla issue let me explain what i did
0
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9287
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9722
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.