473,769 Members | 7,646 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 25437


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
3923
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
25108
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
3779
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
9589
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
9423
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
10214
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
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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
6674
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();...
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.