skip to Main Content

Amazon web services – 'http://localhost:3000' has been blocked by CORS

I've been trying to connect my react .js file to the back end. I have a API in API Gateway and I created a method and enabled CORS and gave it access method.response.header.Access-Control-Allow-Headers 'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token' method.response.header.Access-Control-Allow-Methods 'OPTIONS' method.response.header.Access-Control-Allow-Origin '*' I even…

VIEW QUESTION

Reactjs – Cors issue with react, express, and discord Oauth2

Access to XMLHttpRequest at 'https://discord.com/oauth2/authorize?response_type=code&redirect_uri=https%3A%2F%2Fx%2Fapi%2Fauth%2Fdiscord%2Fcallback&scope=identify%20email%20guilds.members.read%20guilds.join%20guilds&client_id=x' (redirected from 'x/api/auth/discord') from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. so ya ive tried a few things to try and solve the cors issue…

VIEW QUESTION
Back To Top
Search