Reputation: 51383
I'm trying to use socket.io in my spotify app and the get request for [domain]/socket.io/socket.io.js keeps getting canceled. I've added the domain to the manifest and everything.
Thanks!
Upvotes: 1
Views: 395
Reputation: 13763
I can add that when you use socket.io it will try to initialize Flash to check if flash is available so if you find a white box in Spotify (only in Windows), remove the swbobjects initialization in the socket.io.js on the node server.
Upvotes: 1
Reputation: 10103
Try restarting Spotify. Your app's manifest.json
file is loaded when you first view your app, and cached until you quit, even if you modify it.
In order to request external resources, your application needs to specify each domain it plans to connect to in its manifest.json
file.
Add a line like this:
{
// ...
"RequiredPermissions": [ "http://*.spotify.com", "http://spotify.com", "http://test.example.com" ]
// ...
}
For the full details check out the Permissions section of the Spotify Apps API Guide.
Upvotes: 2