I have wrote a nestjs application and deploy it in my own server with this cors config:
app.enableCors({
origin: true,
methods: ['GET', 'POST', 'PUT', 'DELETE'],
allowedHeaders: ['Content-Type', 'Authorization'],
exposedHeaders: ['Content-Range', 'X-Content-Range'],
credentials: true,
maxAge: 300,
});
I also have a react + vite application that I have deployed on Vercel, but any request from vercel domain is being blocked 'cause of the cors even though that I have configured it to access any request
Link to the web app
https://online-music-player-sand.vercel.app
My API
http://85.31.237.223:3000/