简体   繁体   English

Google资料库错误:请求访问的框架具有“https”协议,正在访问的框架具有“http”协议

[英]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.

相关问题 请求访问的框架的协议为“ https”,正在访问的框架的协议为“ http” - The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http' for Linkedin 请求访问的帧的协议为“ https”,正在访问的帧的协议为“ http”。 协议必须匹配 - The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “http”. Protocols must match 请求访问的框架协议为“https”,被访问的框架协议为“chrome-extension”。 协议必须匹配 - The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "chrome-extension". Protocols must match 将协议从 http 更改为 https 时出现 Google Analytics 错误 - Google Analytics error when changing protocol from http to https 协议HTTP和https不匹配 - Mismatch protocol http and https Javascript HTTPS-Frame对父HTTP-Frame的访问 - Javascript HTTPS-Frame Access to Parent HTTP-Frame Nodejs 错误:不支持协议“http:”。 预期“https:” - Nodejs Error: Protocol “http:” not supported. Expected “https:” 节点 js 错误:不支持协议“https:”。 预期“http:” - Node js Error: Protocol "https:" not supported. Expected "http:" 检查 URL 是否有协议 http(s) 如果没有添加一个 javascript - Check if URL has protocol http(s) if not add one with javascript React - 不支持协议“https:”。 预期的“http:” - React - Protocol "https:" not supported. Expected "http:"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM