【发布时间】:2017-12-19 19:57:18
【问题描述】:
我正在尝试按照 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.
请帮助我。不知道发生了什么。
编辑:似乎在我的 shopify 应用程序上将 iFrame 从 http 加载到 https 时出现问题,因为当我将应用程序部署到 heroku 并以这种方式执行应用程序时......
我怎样才能让它在我准备好启动之前使用 localhost 作为开发者?
【问题讨论】:
-
你好!我遇到了完全相同的事情,但是使用 php 应用程序并将应用程序托管在带有负载均衡器和 Amazon 自己的 SSL 安全证书的 Amazon EC2 服务器(Elastic Beanstalk)上。 SSL 证书和其他所有内容都可以使用 https://,但是 Shopify 不会从 https:// 在 Iframe 中加载应用程序 这是带有错误 screencast.com/t/VScHNcjQwf4 的屏幕截图
标签: ruby-on-rails shopify shopify-app