无法在Safari 9中通过http加载Stripe [英] Cannot load Stripe over http in Safari 9

查看:301
本文介绍了无法在Safari 9中通过http加载Stripe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过http加载Stripe.js会导致此错误:

Trying to load Stripe.js over http results in this error:

Blocked a frame with origin "http://localhost.dev:8080" 
from accessing a frame with origin "https://js.stripe.com".  
The frame requesting access has a protocol of "about", 
the frame being accessed has a protocol of "https". 
Protocols must match.

最简单的脚本:

<!DOCTYPE html>
<html lang="en">
 <body>
  <script type="text/javascript" src="https://js.stripe.com/v2/">   </script>
 </body>
</html>

这不会发生在Chrome / FF - 只有Safari 9.这是一个已知的问题/更改,有没有解决方法?这是什么关于事情?

This does not occur in Chrome/FF - only Safari 9. Is this a known issue/change and is there a workaround? And what is this 'about' thing?

推荐答案

这是LiveReload服务器运行造成干扰。留下问题,万一它有帮助。

Ok. It was LiveReload server running that caused interference. Leaving question up in case it helps.

这篇关于无法在Safari 9中通过http加载Stripe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆