Cors error upon redirect

I have the server and client separated on two different locations (127.0.0.1:5000 and localhost:3000). The client requests the server which then redirects to twitch, but then I get the CORS.