2016-06-08 37 views
1

我正在嘗試將Stripe整合到我的Web應用程序中(前端是AngularJS)。當我開發我是在localhost:9000,但是當我嘗試用Stripe.js和AngularJS - 加載條紋庫失敗

<script type="text/javascript" src="https://js.stripe.com/v2/"></script> 

加載Stripe.js我得到一個錯誤:

Blocked a frame with origin " http://localhost:9000 " 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 http

你有什麼建議嗎?

+0

什麼是您正在開發的網頁的網址? – ceejayoz

+0

其在本地主機上(開發模式) –

+0

您是否使用live reload? – ceejayoz

回答

0

從Gruntfile.js中刪除livereload解決了Safari中的問題。 只是評論livereload:

//livereload: 35729