Cors Not Working At All
The SDK demo works fine (it doesn't need special CORS stuff since it is on the same domain) When I try to send the request from localhost:8080 this happens So I'm trying to reques
Solution 1:
here's a working example where request is coming from jsbin.com:
var request = new XMLHttpRequest();
request.onreadystatechange = function () {
if (request.readyState === 4 && request.status === 200) {
console.log(request.responseText);
}
};
request.open('GET', 'http://api.soundcloud.com/tracks?client_id=YOUR_CLIENT_ID');
request.send();
Post a Comment for "Cors Not Working At All"