我正在尝试使用谷歌钱包启动并运行,并且正在遵循“入门”教程。当我调用 javascript 库时
<script src="https://sandbox.google.com/checkout/inapp/lib/buy.js"></script>
我在控制台中收到以下错误:
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 地址上,但仍然出现错误。我是否缺少一个技巧来加载它?