Spotify API INVALID_CLIENT: Insecure redirect URI
-
Getting this error INVALID_CLIENT: Insecure redirect URI when trying to authenticate my Spotify account with Strawberry.
I do not know if this is a Spotify error, or the latest version of Strawberry (Version 1.2.15)
Spotify functions normally as a webpage and as an app on my linux machine
I checked Spotify for Developers (https://developer.spotify.com/documentation/web-api/concepts/redirect_uri) and it says localhost is not allowed, which is part of the url sent from Strawberry.Thanks for the great work.
-
They changed the API to not allow localhost anymore, have to use 127.0.0.1 instead:
https://developer.spotify.com/blog/2025-02-12-increasing-the-security-requirements-for-integrating-with-spotifyI've fixed this now https://github.com/strawberrymusicplayer/strawberry/commit/9ed89afdb2063baaac694f59e7a97d27871e7a01