Passport authentification - client server - headers issues

You need to redirect the user to Twitch, not perform an axios.get

In the server

res.redirect('https://id.twitch.tv/oauth2/authorize?client_id=etc&response_type=code');

or in HTML

<a href="https://id.twitch.tv/oauth2/authorize?client_id=etc&response_type=code">Login with Twitch</a>

Not axios.getting it, thats why you keep getting a CORS error.

It seems you need a

<a href="hostapi:portapi/twitchAuth">Login with Twitch</a>

Not getting with with axios