<legend id='5hWUY'><style id='5hWUY'><dir id='5hWUY'><q id='5hWUY'></q></dir></style></legend>

<small id='5hWUY'></small><noframes id='5hWUY'>

      • <bdo id='5hWUY'></bdo><ul id='5hWUY'></ul>

      <i id='5hWUY'><tr id='5hWUY'><dt id='5hWUY'><q id='5hWUY'><span id='5hWUY'><b id='5hWUY'><form id='5hWUY'><ins id='5hWUY'></ins><ul id='5hWUY'></ul><sub id='5hWUY'></sub></form><legend id='5hWUY'></legend><bdo id='5hWUY'><pre id='5hWUY'><center id='5hWUY'></center></pre></bdo></b><th id='5hWUY'></th></span></q></dt></tr></i><div id='5hWUY'><tfoot id='5hWUY'></tfoot><dl id='5hWUY'><fieldset id='5hWUY'></fieldset></dl></div>

    1. <tfoot id='5hWUY'></tfoot>

      SCRIPT5:在 IE9 中对 xmlhttprequest 的访问被拒绝

      时间:2023-05-16

      <i id='QlrgY'><tr id='QlrgY'><dt id='QlrgY'><q id='QlrgY'><span id='QlrgY'><b id='QlrgY'><form id='QlrgY'><ins id='QlrgY'></ins><ul id='QlrgY'></ul><sub id='QlrgY'></sub></form><legend id='QlrgY'></legend><bdo id='QlrgY'><pre id='QlrgY'><center id='QlrgY'></center></pre></bdo></b><th id='QlrgY'></th></span></q></dt></tr></i><div id='QlrgY'><tfoot id='QlrgY'></tfoot><dl id='QlrgY'><fieldset id='QlrgY'></fieldset></dl></div>

      • <legend id='QlrgY'><style id='QlrgY'><dir id='QlrgY'><q id='QlrgY'></q></dir></style></legend>

          <tfoot id='QlrgY'></tfoot>

                <tbody id='QlrgY'></tbody>
                <bdo id='QlrgY'></bdo><ul id='QlrgY'></ul>

                <small id='QlrgY'></small><noframes id='QlrgY'>

              • 本文介绍了SCRIPT5:在 IE9 中对 xmlhttprequest 的访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..
                var xhttp=new XMLHttpRequest();
                xhttp.open('GET', 'foo.xml', false);
                

                F12 弹回:SCRIPT5:访问被拒绝.在第 95 行,即 xhttp.open 行.

                F12 pops back: SCRIPT5: Access is denied. on Line 95, which is the xhttp.open line.

                我的 JavaScript 看起来格式正确,Firefox 做了我认为应该做的事.

                My JavaScript seems well-formed, and Firefox does what I think it should.

                我已经阅读了很多与此问题非常相似的问题,因此我查看了同源策略,但考虑到 foo.xml 与.html 文件.我在本地 Intranet 上打开了脚本权限,并告诉 McAfee 休息五分钟,以确保安全.我什至尝试以管理员身份运行 IE,所以这真的不是权限问题吗?为什么 IE 会被拒绝访问本地文件?

                I've read a lot of questions very similar to this one, so I've checked out the Same Origin Policy, but I can't see how it'd apply considering foo.xml is in the same directory as the html file. I opened up the scripting permissions on my local intranet, and told McAfee to take a five-minute break, just to be sure. I even tried running IE as admin, so this can't really be a permissions issue can it? Why else would IE be denied access to a local file?

                推荐答案

                也许你想看看下面的链接:

                Maybe you like to check the links below:

                • 使用 XMLHttpRequest 或 XDomainRequest 进行跨域 JavaScript 请求
                • XMLHttpRequest – Mozilla 开发者网络
                • 对 jQuery x 域请求的一个很好的总结
                • 哪种浏览器支持x域?
                • Making cross domain JavaScript requests using XMLHttpRequest or XDomainRequest
                • XMLHttpRequest – Mozilla Developer Network
                • A good summary of the jQuery x-domain requests
                • Which browser supports x-domain?

                这篇关于SCRIPT5:在 IE9 中对 xmlhttprequest 的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:XMLHttpRequest 模块未定义/未找到 下一篇:没有了

                相关文章

                <tfoot id='uAxiU'></tfoot>
              • <small id='uAxiU'></small><noframes id='uAxiU'>

                  <legend id='uAxiU'><style id='uAxiU'><dir id='uAxiU'><q id='uAxiU'></q></dir></style></legend>
                  1. <i id='uAxiU'><tr id='uAxiU'><dt id='uAxiU'><q id='uAxiU'><span id='uAxiU'><b id='uAxiU'><form id='uAxiU'><ins id='uAxiU'></ins><ul id='uAxiU'></ul><sub id='uAxiU'></sub></form><legend id='uAxiU'></legend><bdo id='uAxiU'><pre id='uAxiU'><center id='uAxiU'></center></pre></bdo></b><th id='uAxiU'></th></span></q></dt></tr></i><div id='uAxiU'><tfoot id='uAxiU'></tfoot><dl id='uAxiU'><fieldset id='uAxiU'></fieldset></dl></div>

                    • <bdo id='uAxiU'></bdo><ul id='uAxiU'></ul>