Invalid redirect URI on spotify auth

前端 未结 11 1246
日久生厌
日久生厌 2021-02-03 16:56

I try to auth user through my app with spotify Web API but I receive this error:

INVALID_CLIENT: Invalid redirect URI

URL:

GET         


        
11条回答
  •  梦谈多话
    2021-02-03 17:40

    This is super specific, so make sure you have exact url in each place.

    In my app dashboard on spotify I had: http://localhost:3005/

    And my url is: https://accounts.spotify.com/authorize?client_id=XXXXXXXXXXXXXXXXX&response_type=code&redirect_uri=http %3A%2F%2Flocalhost:3005/&scope=user-read-currently-playing%20user-top-read

    Note the trailing slash in both places.

提交回复
热议问题