权限被拒绝调用方法XMLHttpRequest.open [英] Permission denied to call method XMLHttpRequest.open
问题描述
嗨。
我正在尝试建立一个网页,通过使用以下方式调用另一个网页(在
不同的服务器上):
var req = new XMLHttpRequest()
我知道有些浏览器(Mozilla和IE)不允许它,并且
显示这个错误:
允许拒绝调用方法XMLHttpRequest.open
我可以解决这个问题吗? Thx。
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.
推荐答案
fr ********** @ usa.com 写道:
fr**********@usa.com wrote:
我是尝试使用以下方法构建一个调用另一个(在不同服务器上)的网页:
var req = new XMLHttpRequest()
我知道一些浏览器(Mozilla和IE)不允许它,并且
显示此错误:
拒绝调用方法XMLHttpRequest.open
我可以解决这个问题吗? Thx。
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有不同的安全区域,对于每个区域,您可以配置
是否允许从其他服务器访问数据源。所以
你需要你的用户降低正常的安全设置,或者把你的网站放在受信任的区域,并配置允许
这样的访问。
使用Mozilla你需要使用签名脚本然后请求
权限来访问来自不同服务器的数据,浏览器用户可以
然后
然后授予该权限并保存该设置。
或者您通过设置代理来解决它在您的服务器上的问题。
从其他服务器获取XML的脚本,以便客户端脚本
仅连接到您自己的服务器。
-
Martin Honnen
http:// JavaScript。 FAQTs.com/
是否可以将来自不同服务器的页面调用到iframe或
中然后获取文档以某种方式使用javascript ??
Is it possible to call a page from a different server into an iframe or
something and then getting the document somehow using javascript??
你可以将任何你想要的东西加载到iframe但你不允许
读取除非iframe的内容来自同一个域。
-Steffan
文章 11 ******************* ***@f14g2000cwb.googlegroups。 com ,
ca ********** @ gmail.com 在 ca**********@gmail.com 上写道7 / 25/05 6:49 PM:
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**********************@f14g2000cwb.googlegroups. com,
ca**********@gmail.com at ca**********@gmail.com wrote on 7/25/05 6:49 PM:
是否可以将一个页面从不同的服务器调用到iframe或
某些东西然后以某种方式使用javascript获取文档? ?
Is it possible to call a page from a different server into an iframe or
something and then getting the document somehow using javascript??
这篇关于权限被拒绝调用方法XMLHttpRequest.open的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!