正被访问的帧具有

正被访问的帧具有

本文介绍了Google钱包错误:请求访问的帧具有“https”协议,正被访问的帧具有“http”协议。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试启动并运行谷歌钱包,并遵循。当我调用javascript库时

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

<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

我试图使用

<script src="https://sandbox.google.com/checkout/inapp/lib/buy.js"></script>

但是我得到了同样的错误。我甚至把我的应用程序放在https地址上,但仍然出错。是否有一个技巧我想要加载它?

but I get the same error. I have even put my app online at an https address and still get the error. Is there a trick I'm missing to get this to load?

推荐答案

我很确定你可以解决这个问题使用http而不是https。

I'm pretty sure that you can solve this by using http instead of https.

还要确保清空缓存。在chrome press + + 或 + +

Also make sure to empty your cache. In chrome press ++ or ++

这篇关于Google钱包错误:请求访问的帧具有“https”协议,正被访问的帧具有“http”协议。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 16:02