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

Javascript – Nest JS route not getting mapped

import { Controller, Post, UploadedFile, Get, Param, Res, UseInterceptors, StreamableFile, Header } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/platform-express'; import { Response } from 'express'; import { createReadStream } from 'fs'; import { join } from 'path'; @Controller() export…

VIEW QUESTION
Back To Top
Search