简体   繁体   English

Shopify嵌入式应用程序强制使用https

[英]Shopify embedded app forcing https

Usually I can develop an embedded app locally by "allowing unsafe scripts" in chrome, as it even mentions in the embedded app sdk docs. 通常,我可以通过chrome中的“允许不安全脚本”在本地开发嵌入式应用程序,甚至在嵌入式应用程序sdk文档中也提到了这一点。 However on Friday I noticed that it was no longer working and Shopify is trying to load the app iframe as https://localhost:3000 which doesn't work of course. 但是在星期五,我注意到它不再起作用了,Shopify试图将应用程序iframe加载为https:// localhost:3000 ,这当然是行不通的。 Is there some change in the way Shopify handles embedded apps or is there anything else I can do? Shopify处理嵌入式应用程序的方式是否有所变化,或者我还能做其他事情吗?

Shopify employee here. Shopify员工在这里。 We've pushed a change today to allow http URLs for localhost. 我们今天进行了更改,允许本地主机使用http URL。 Other URLs are still upgraded to https. 其他URL仍升级为https。 I do encourage you however to change your development environment to use https. 但是,我确实鼓励您将开发环境更改为使用https。 This will allow you to avoid some basic problems when you push your change to production, for example with mixed content. 这将使您避免在将变更进行生产时遇到一些基本问题,例如混合内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM