0
votes

I am fairly new to web development, and I have been trying to make a web app with Python using the Spotify API.

I've tried to experiment with getting authorization to a user's account and I've tried entering this into my browser (replacing "CLIENTID" with my client id): https://accounts.spotify.com/authorize?client_id=CLIENTID&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback

However, I'm getting the error:

INVALID_CLIENT: Invalid redirect URI. 

I have white listed http://example.com/callback in my account, so that shouldn't be a problem. What am I doing wrong?

1
Hi welcome to the SO community. If you whitelisted "example.com/callback" that does not work, use this instead: localhost:8888/callbackChris

1 Answers

0
votes

Take a look at this post, essentially the redirect URI should be exactly the same as the one that is whitelisted on the spotify dashboard.