[英]Requests to the server blocked, Shopify_app
I am attempting to install my rails app following the guide for the shopify_app gem. 我正在尝试按照shopify_app gem的指南安装我的rails应用程序。 I installed it to my dev store on shopify and then i get this screen when trying to access the app.
我将其安装到shopify上的开发商店中,然后在尝试访问该应用程序时出现此屏幕。
EDIT: I am getting this in the console: 编辑:我在控制台中得到此:
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.
Please help me. 请帮我。 No clue whats happening.
没有任何线索。
EDIT: IT seems as though there is an issue loading an iFrame from an http to a https on my shopify app because when I deploy the app to heroku and do it that way the app works... 编辑:它似乎在shopify应用程序上将iFrame从http加载到https似乎存在问题,因为当我将应用程序部署到heroku并以这种方式运行时...
How can I make it so i can use localhost as dev until im ready to launch? 我如何才能做到这一点,以便在IM准备启动之前可以将localhost用作dev?
You probably want to read up on using a service like forwardhq or ngrok. 您可能想阅读有关使用诸如forwardhq或ngrok之类的服务的信息。 That way you can test and develop localhost, including webhooks, and proxy calls.
这样,您可以测试和开发localhost,包括webhook和代理调用。 Works like a peach.
像桃子一样起作用。 Shopify fully documents it, check out their suggestions.
Shopify将其完整记录下来,查看他们的建议。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.