I am trying to access Soundcloud from a local HTML page on my laptop. I am stuck on the hosting part of "callback.html" as redirect_uri. script I am trying to run a basic authentication script on the Soundcloud documentation page:
<script src="http://connect.soundcloud.com/sdk.js"></script> <script> </script>
This script returns me to the connection popup when the page starts in Chrome and Firefox. But, as soon as I registered as a Soundcloud user, I get the following error:
Oops! Google Chrome could not connect to 127.0.0.1
If I change my redirect_uri to localhost, I get the same error.
If I try:
files:
I get a similar error.
I also tried:
ocalhost:3000
and
localhost:8080
although I'm not sure I will listen to these ports.
So basically, I am asking which way do I use for callback.html for this to work?
I admit, I do not know how redirct_uri works. I looked at the Oauth pages, but I do not understand them. I am starting to think that I cannot just create an HTML page, insert JavaScript, create a callback.html file and do the job, even if the SC documentation seems to say that this is possible. If so, what steps am I missing?
source share