在shopify中使用ngrok在主题应用程序扩展中对shopify应用程序服务器进行提取调用时出现CORS错误
使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法从前端访问应用程序,因为是 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.