无法在 Safari 9 中通过 http 加载 Stripe
Cannot load Stripe over http in Safari 9
尝试通过 http 加载 Stripe.js 导致此错误:
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 中。这是已知的 issue/change 并且有解决方法吗? 'about' 是什么东西?
好的。造成干扰的是 LiveReload 服务器 运行。留下问题以防有帮助。
尝试通过 http 加载 Stripe.js 导致此错误:
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 中。这是已知的 issue/change 并且有解决方法吗? 'about' 是什么东西?
好的。造成干扰的是 LiveReload 服务器 运行。留下问题以防有帮助。