skip to Main Content

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

Azure – What is the use of COBRAND ID in Microsoft OAUTH 2.0?

async function authenticateDevice() { const client_id = ''; const scope = 'offline_access xboxlive.signin xboxlive.offline_access'; const cobrand_id = '8058f65d-ce06-4c30-9559-473c9275a65d'; const data = qs.stringify({ 'client_id': client_id, 'scope': scope, 'cobrandid': cobrand_id }); const config = { method: 'post', url: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode', headers: { 'Content-Type':…

VIEW QUESTION
Back To Top
Search