对服务器的请求被阻止,Shopify_app

时间:2017-12-19 19:57:19

标签: ruby-on-rails shopify shopify-app

我正在尝试按照shopify_app gem的指南安装我的rails应用程序。我在shopify上将它安装到我的开发商店,然后在尝试访问应用程序时显示此屏幕。

编辑:我在控制台中收到了这个:

Refused to frame 'https://localhost:3000/' because it violates the following Content Security Policy directive: "child-src 'self' https://* shopify-pos://*". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback.

enter image description here

请帮帮我。没有任何线索发生。

编辑:在我的shopify应用程序上将iFrame从http加载到https时似乎存在问题,因为当我将应用程序部署到heroku并以这种方式运行应用程序时...

我怎样才能这样做,所以我可以使用localhost作为dev,直到我准备好发布?

1 个答案:

答案 0 :(得分:0)

您可能想要阅读使用像forwardhq或ngrok这样的服务。这样您就可以测试和开发localhost,包括webhooks和代理调用。像桃子一样工作。 Shopify完整记录,查看他们的建议。

相关问题