PM8K
PM8K

Reputation: 21

Why do I get an Illegal Redirect URI with Spotify when using a headless browser vs Chrome?

I'm trying to automate the creation of a token with the Spotify API, however the headless browsers I try to use always error at 'Invalid redirect_uri'. Currently I'm trying to use Spynner and Ghost.py, but both end up at the same problem point.

What I know so far:

I'm at a loss as to why I can't get this to work. Why would a link in a headless browser not redirect like in Chrome?

Upvotes: 0

Views: 1340

Answers (1)

arirawr
arirawr

Reputation: 1275

Check your App's settings at https://developer.spotify.com/my-applications/. The redirect URI there needs to exactly match the one you use in order for Spotify to redirect.

Upvotes: 1

Related Questions