0
因此,顯然由於最近的一次交換,所有SoundCloud API和widget請求都通過HTTPS路由。由於這個原因,任何試圖從非HTTPS域使用Widget API(http://developers.soundcloud.com/docs/api/html5-widget)拋出在Chrome以下錯誤:是否可以從非HTTPS域使用SoundCloud HTML5 Widget API?
Unsafe JavaScript attempt to access frame with URL http://foobar.com/ from
frame with URL https://w.soundcloud.com/player/?
url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F7659975. The frame requesting
access has a protocol of 'https', the frame being accessed has a protocol of
'http'. Protocols must match.
目前正在就這一問題顯然追蹤中鉻issue。所以,我的問題是:目前是否可以使用HTML5 Widget API,或者這是一個阻塞問題?
我認爲這與使用SoundCloud Widget API有關。 有錯誤,但您仍然可以通過腳本控制小部件。 它不是鉻問題,你會發現在大多數瀏覽器上這個錯誤。 – cucko 2013-02-19 12:56:39