News for hackers. Stuff that matters.
Re:Show HN: SoundCloud Instant by rakoo on Thursday April 17, 2014 @02:46AM (#7602283)
Hmmm...

> Blocked loading mixed active content "http://code.jquery.com/jquery-latest.js"

> Blocked loading mixed active content "http://connect.soundcloud.com/sdk.js"

You're trying to mix HTTPS and HTTP...

I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.

Oh, and it looks like every action is sent to google for statistics ?

Re:Show HN: SoundCloud Instant by wdewind on Thursday April 17, 2014 @08:31AM (#7603152)
> I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.

To OP: The way to fix this is to have the JS make a request to your own server, have your own server make the request to Soundcloud and proxy it back to you. That way you don't have to put your key in the JS, you can keep it on your server.

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:17AM (#7603341)
Is there any way where it does not use a server? I really do not want to use a server here.
Re:Show HN: SoundCloud Instant by wdewind on Thursday April 17, 2014 @10:49AM (#7603906)
Unfortunately not. Since all JS is going to be transferred to the client, if the key is in the JS the client has access to it.
Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:16AM (#7603338)
Well the URLs are provided by SoundCloud and jQuery so there's nothing that I can do (other than hosting it myself).

Yeah I just hope no one misuses it.

Yes.

Re:Show HN: SoundCloud Instant by rakoo on Thursday April 17, 2014 @10:43AM (#7603862)
> Well the URLs are provided by SoundCloud and jQuery so there's nothing that I can do (other than hosting it myself).

Drop the scheme [0], the browser will be smart enough to know whether to use http or https.

[0] https://stackoverflow.com/questions/550038/is-it-valid-to-re...

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @11:19AM (#7604119)
Apparently SC doesn't like it and for some reason the app is very slow after dropping the scheme.