在shopify中使用ngrok在主题应用程序扩展中对shopify应用程序服务器进行提取调用时出现CORS错误

发布于 2025-01-09 05:17:49 字数 64 浏览 5 评论 0原文

使用 ngrok 地址从 shopify 访问应用程序服务器时出错 .cors 错误 有没有办法直接通过商店进入?

Error when accessing app server from shopify using ngrok address .cors error
is there a way of acessing through the store directly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把梦留给海 2025-01-16 05:17:49

您无法从前端访问应用程序,因为是 CORS。此外,您无法访问您的应用程序,因为安全!您不要从主题应用程序扩展中调用您的应用程序,原因很简单,您的应用程序是安全的。如果没有 API 密钥进行验证,您就会暴露在世人面前。在前端,任何人都可以看到您的 API 密钥秘密。因此,您不会从前端调用您的应用程序。如果您需要对应用程序进行安全回调,请使用应用程序代理。

You cannot access an App from the front-end because yes CORS. Also, you cannot access your App because SECURITY! You DO NOT call your App from your theme App extension for the simple reason that your App is secure. Without an API secret key to verify, you'd be exposed to the world. On the front-end anyone can see your API key secret. Therefore you do not call your App from the front-end. If you need to make secure callbacks to your App, use the App Proxy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文