angular-spotify
angular-spotify copied to clipboard
No token provided in spotify queries
I'm following all needed steps in order to get angular-spotify working (setting clientId, token, etc)
But when performing the call to spotify api, I get a 401 error response saying token is not provided. I looked at the call headers, and I see it is not sending the token for authentication:
access-control-allow-credentials true access-control-allow-headers Accept, Authorization, Origin, Content-Type, Retry-After access-control-allow-methods GET, POST, OPTIONS, PUT, DELETE, PATCH access-control-allow-origin * access-control-max-age 604800 alt-svc clear content-encoding gzip content-length 90 content-type application/json date Sat, 04 Aug 2018 23:26:01 GMT via 1.1 google www-authenticate Bearer realm="spotify" X-Firefox-Spdy
If i add manually the 'Authorization' parameter with my token to the query, it performs the call correctly, and gives me the data I want.
Any idea why is not attaching the token to the call params? Thank you!
P.S.: I'm using tag 1.4.2 in order to make it work with angular 1.5