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

    1. <small id='ZL438'></small><noframes id='ZL438'>

      <tfoot id='ZL438'></tfoot>

      1. <legend id='ZL438'><style id='ZL438'><dir id='ZL438'><q id='ZL438'></q></dir></style></legend>

        BigCommerce API 是否支持 CORS?

        时间:2023-10-14

          1. <legend id='hSBS8'><style id='hSBS8'><dir id='hSBS8'><q id='hSBS8'></q></dir></style></legend>

                <tbody id='hSBS8'></tbody>
              <tfoot id='hSBS8'></tfoot>
                <bdo id='hSBS8'></bdo><ul id='hSBS8'></ul>

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

                • <i id='hSBS8'><tr id='hSBS8'><dt id='hSBS8'><q id='hSBS8'><span id='hSBS8'><b id='hSBS8'><form id='hSBS8'><ins id='hSBS8'></ins><ul id='hSBS8'></ul><sub id='hSBS8'></sub></form><legend id='hSBS8'></legend><bdo id='hSBS8'><pre id='hSBS8'><center id='hSBS8'></center></pre></bdo></b><th id='hSBS8'></th></span></q></dt></tr></i><div id='hSBS8'><tfoot id='hSBS8'></tfoot><dl id='hSBS8'><fieldset id='hSBS8'></fieldset></dl></div>
                  本文介绍了BigCommerce API 是否支持 CORS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我想在应用程序安装期间与 BigCommerce 交换信息,并从 html 页面发送代码的 POST 请求.但是我一直被 CORS 阻止:请求的资源上没有 'Access-Control-Allow-Origin' 标头.".而且我在 BigCommerce API 文档中找不到任何相关信息.

                  I want to exchange information with BigCommerce during application installation and send POST request for code from html page. But I keep getting blocked by CORS: " No 'Access-Control-Allow-Origin' header is present on the requested resource.". And I cannot find anything about it in BigCommerce API documentation.

                  有人知道吗,支持吗?有没有办法在浏览器中从 javascript 调用 BigCommerce api?

                  Do somebody know, is it supported? Is there any way to call BigCommerce api from javascript in browser?

                  推荐答案

                  我们不支持 CORS.尝试在浏览器中直接从 javascript 调用 API 是非常不安全的.这会公开一个 API 令牌,使某人能够通过基本身份验证访问存储中可用的任何数据.这将包括 PII.

                  We do not support CORS. It is very insecure to try to call the API from javascript on in the browser directly. This exposes an API token which enables someone to have access to any data in the store available through basic authentication. This would include PII.

                  如果您确实需要从 API 调用信息,请使用安全的 Web 服务,该服务会向您的脚本返回非常具体的值,而不是直接调用它.

                  If you really need to call info from the API, please use a secure web service that returns very specific values to your script as opposed to calling it directly.

                  这篇关于BigCommerce API 是否支持 CORS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:从本地文件夹导入 type=module 的脚本会导致 CORS 问 下一篇:使用 Polymer Iron-ajax 和 Node.js 发出 CORS 请求

                  相关文章

                  最新文章

                  <legend id='0c2Co'><style id='0c2Co'><dir id='0c2Co'><q id='0c2Co'></q></dir></style></legend>

                • <tfoot id='0c2Co'></tfoot>
                • <small id='0c2Co'></small><noframes id='0c2Co'>

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