Google wallet error: The frame requesting access h

2019-08-10 20:57发布

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

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. Is there a trick I'm missing to get this to load?

1条回答
太酷不给撩
2楼-- · 2019-08-10 21:17

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

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

查看更多
登录 后发表回答