[英]Google wallet error: The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “http”
I'm trying to get up and running with google wallet and am following the "get started" tutorial . 我正试图启动并运行谷歌钱包,并遵循“入门”教程 。 When I put in the call for the javascript library
当我调用javascript库的时候
<script src="https://sandbox.google.com/checkout/inapp/lib/buy.js"></script>
I get the following error in my console: 我在控制台中收到以下错误:
Blocked a frame with origin "https://sandbox.google.com" from accessing a frame with origin "http://localhost:12098". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
inject.js:211
(anonymous function) inject.js:211
I have attempted to use 我试图使用
<script src="https://sandbox.google.com/checkout/inapp/lib/buy.js"></script>
but I get the same error. 但我得到了同样的错误。 I have even put my app online at an https address and still get the error.
我甚至把我的应用程序放在https地址上,仍然出错。 Is there a trick I'm missing to get this to load?
是否有一个技巧我想要加载这个?
I'm pretty sure that you can solve this by using http instead of https. 我很确定你可以通过使用http而不是https来解决这个问题。
Also make sure to empty your cache. 还要确保清空缓存。 In chrome press ctrl + ⇧ + ⌫ or ⌘ + ⇧ + ⌫
在chrome中按ctrl + ⇧ + ⌫或⌘ + ⇧ + ⌫
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.