troybetz / react-soundcloud-widget

react.js powered SoundCloud player component
http://troybetz.github.io/react-soundcloud-widget/
MIT License
26 stars 12 forks source link

Empty URLs are dumped to browser console #14

Open kirill-konshin opened 7 years ago

kirill-konshin commented 7 years ago

This line https://github.com/troybetz/react-soundcloud-widget/blob/master/src/SoundCloud.js#L119 is causing lots of 404 errors to be dumped to console:

src="https://w.soundcloud.com/player/?url="

You need to open IFRAME with some other URL that is more safe.

strachsel commented 7 years ago

Hey Kirill, were you able to find a workaround here? It works for one track, but when I add a couple of tracks, the rest of them don't render and throw empty urls and 404s.

kirill-konshin commented 7 years ago

Nope. I ended up dropping the widget, I now just add an IFRAME because I don't need to track play/pause statuses or integrate in any other way.