Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Authorization Endpoint return CORS error

Authorization Endpoint return CORS error

Plan

Premium

Country

USA

Device

(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)

Operating System

MacOS 10

 

My Question or Issue

 

Hi Spotify team, I am trying to call the User Authorization endpoint as specified here: https://developer.spotify.com/documentation/general/guides/authorization/code-flow/

 

But all I get in response is a status code of 303 and a CORS error in the console

 

Screen Shot 2022-03-12 at 8.48.44 PM.JPG

 

Here is the URL I am making the request to: https://accounts.spotify.com/authorize?client_id=550a7c4f41d4465a859f4fa6f302d05d&response_type=code...

 

Here is my source code: https://github.com/pwhauman1/humpday-musicdrop-web/blob/580f3c4e0b244178cb47c12818551bb7180f322e/src...

 

Any help would be greatly appreciated! I am banging my head against the wall trying to figure this out

 

Reply
1 Reply

I solved the issue. The Authorization URL is a redirect, not a URL to be fetched. Creating a hyperlink worked fine.

Suggested posts