<bdo id='DdLlI'></bdo><ul id='DdLlI'></ul>
  • <legend id='DdLlI'><style id='DdLlI'><dir id='DdLlI'><q id='DdLlI'></q></dir></style></legend><tfoot id='DdLlI'></tfoot>

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

      <i id='DdLlI'><tr id='DdLlI'><dt id='DdLlI'><q id='DdLlI'><span id='DdLlI'><b id='DdLlI'><form id='DdLlI'><ins id='DdLlI'></ins><ul id='DdLlI'></ul><sub id='DdLlI'></sub></form><legend id='DdLlI'></legend><bdo id='DdLlI'><pre id='DdLlI'><center id='DdLlI'></center></pre></bdo></b><th id='DdLlI'></th></span></q></dt></tr></i><div id='DdLlI'><tfoot id='DdLlI'></tfoot><dl id='DdLlI'><fieldset id='DdLlI'></fieldset></dl></div>
      1. “Access-Control-Allow-Origin 不允许 Origin null"在铬.为什么?

        时间:2023-05-16

          <bdo id='EYqOX'></bdo><ul id='EYqOX'></ul>
          <legend id='EYqOX'><style id='EYqOX'><dir id='EYqOX'><q id='EYqOX'></q></dir></style></legend>
                  <tbody id='EYqOX'></tbody>

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

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

                  问题描述

                  限时送ChatGPT账号..

                  我正在开发一些 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"在铬.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文章

                  <legend id='V63bV'><style id='V63bV'><dir id='V63bV'><q id='V63bV'></q></dir></style></legend>

                • <tfoot id='V63bV'></tfoot>

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

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