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

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

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

        “Access-Control-Allow-Origin 不允许 Origin null"在铬

        时间:2023-10-15
      1. <legend id='2JvDg'><style id='2JvDg'><dir id='2JvDg'><q id='2JvDg'></q></dir></style></legend>
          <tbody id='2JvDg'></tbody>

        <small id='2JvDg'></small><noframes id='2JvDg'>

            <i id='2JvDg'><tr id='2JvDg'><dt id='2JvDg'><q id='2JvDg'><span id='2JvDg'><b id='2JvDg'><form id='2JvDg'><ins id='2JvDg'></ins><ul id='2JvDg'></ul><sub id='2JvDg'></sub></form><legend id='2JvDg'></legend><bdo id='2JvDg'><pre id='2JvDg'><center id='2JvDg'></center></pre></bdo></b><th id='2JvDg'></th></span></q></dt></tr></i><div id='2JvDg'><tfoot id='2JvDg'></tfoot><dl id='2JvDg'><fieldset id='2JvDg'></fieldset></dl></div>
              • <bdo id='2JvDg'></bdo><ul id='2JvDg'></ul>
                <tfoot id='2JvDg'></tfoot>
                  本文介绍了“Access-Control-Allow-Origin 不允许 Origin null"在铬.为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在开发一些 Javascript 以在我的 PC 上本地运行.我正在使用 jQuery CSV 插件 (http://plugins.jquery.com/project/csv) 将 csv 文件加载到 javascript 数组中.脚本很简单:

                  I am working on some Javascript to run locally on my PC. I am using a jQuery CSV plugin (http://plugins.jquery.com/project/csv) to load load a csv file into javascript arrays. The script is simple:

                  $(function(){
                   $.get("file.csv", function(data){
                    stuff = $.csv()(data);
                   })
                  })
                  

                  在 Firefox 中它可以正常工作,但在 Chrome 中它显示Access-Control-Allow-Origin 不允许 Origin null".这意味着什么?我找到了各种关于与此错误相关的跨服务器内容的线程,但我只是在处理本地文件.

                  In Firefox it works fine but in Chrome it says "Origin null is not allowed by Access-Control-Allow-Origin". What does that mean? I find all sorts of threads about cross-server stuff related to this error but I am just working with local files.

                  推荐答案

                  Chrome 不认为任何两个本地文件之间存在任何共同关系.

                  Chrome doesn't believe that there's any common relationship between any two local files.

                  您可以使用--allow-file-access-from-files"选项启动它,告诉它您不同意.

                  You can start it with the option "--allow-file-access-from-files" to tell it you disagree.

                  感谢升天大师尼克·克拉弗(Nick Craver)在我前段时间问基本相同的问题时提供的信息.

                  Thanks to the ascendant master Nick Craver for this info when I asked essentially the same question some time ago.

                  这篇关于“Access-Control-Allow-Origin 不允许 Origin null"在铬.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 XMLHttpRequest 中获取响应 url? 下一篇:如何使用 jQuery 获取 HTTP 状态码?

                  相关文章

                  最新文章

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

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

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