Implicit with flow CORS error

Hello.

I’m using implicit auth type flow, but when I try to send request from http://localhost:4200 to https://id.twitch.tv/oauth2/authorize?[parameters], I always get the CORS error

I do it locally, without any backend implementation.
redirect_uri in developer console: http://localhost:4200/

Could you please explain what I’m doing wrong?

The first step of oAuth is to redirect the user to Twitch

This error suggests you are trying to do a fetch or ajax or server side request instead of redirecting.

See this full implicit auth example - Twitch Implicit Auth Example

1 Like

Thanks for your help!