Skip to main content

All Questions

Tagged with
1 vote
0 answers
26 views

CORS error showing even when the backend access control allow origin is set for frontend url after deployment on vercel

I have deployed my mern app's frontend and backend on vercel on 2 different url's. For backend i have set : app.use(cors({credentials : true , origin : 'https://music-app-client-five.vercel.app'})); ...
Aditya Nagare's user avatar
0 votes
0 answers
17 views

Issues with CORS and HTTP Requests in Vercel Deployment for Node.js and MongoDB Backend

I'm facing issues with CORS and HTTP requests in my project deployed on Vercel. The project involves a Node.js backend (node-backend.vercel.app) and a frontend (frontend-part.vercel.app). I have ...
ShashidharM's user avatar
0 votes
1 answer
37 views

405 (Method Not Allowed) Error in Vercel FastAPI Backend (But Works Locally)

I have just deployed my NextJS-frontend/FastAPI-backend app on Vercel, and I am currently running into an issue that seems related to CORS that is giving me a 405 Method Not Allowed when I try to POST/...
theGreenCabbage's user avatar
0 votes
0 answers
17 views

cookies are not available in request headers in vercel deployment

I am working on a MERN project. I am trying to implement authentication system. But when running the server in localhost. The cookies are available in request headers but on runnning server on vercel ...
b1shwash's user avatar
0 votes
0 answers
41 views

How to enable CORS with NEXT 14 at Vercel?

I have an api endpoint, and I want it to be accessible from any domain name (everyone can use it from web on their domains). import { NextApiResponse } from "next"; import { NextResponse } ...
SERG's user avatar
  • 4,007
1 vote
0 answers
47 views

Vercel CORS Error when trying to fetch from backend api also hosted on Vercel

I'm trying to fetch data from my API hosted on Vercel but it says CORS error. I can fetch the data from insomnia and the same copy of the website locally works just fine. The same link gives the CORS ...
David's user avatar
  • 19
0 votes
0 answers
17 views

Having CORS Error due to preflight request

I have a build a MERN typescript app. It was running perfectly, the api was on cyclic and the client on vercel but due to the shut down of cyclic I need to find a new free host plateform for my api. I ...
Thomas Melchers's user avatar
-1 votes
2 answers
56 views

I can't acces my data when I deploy in vercel api. It shows only cors problem - how to solve this?

:5173/watches:1 Access to fetch at 'https://watch-websites-server-site-mr3f7mg2v-md-sabbir-khans-projects.vercel.app/watches' from origin 'http://localhost:5173' has been blocked by CORS policy: No '...
Md Sabbir Khan's user avatar
0 votes
0 answers
50 views

CORS Issue with NestJS API and NextJS Frontend

I am experiencing CORS issues between my NestJS API and NextJS frontend applications. Setup API: Developed with NestJS, deployed on Vercel. CORS is configured in main.ts to allow requests from https:/...
Pedrohhcunha's user avatar
0 votes
2 answers
60 views

Issue with CORS when trying to deploy via vercel

This problem has been solved..
DMOSnd's user avatar
  • 35
0 votes
0 answers
38 views

how to solve the cors error, frontend & backend deployed in different server

this is my folder structure backend folder vercel.json file:- { "version": 2, "builds": [ { "src": "./src/server.ts", "use": "...
aditya basude's user avatar
0 votes
0 answers
35 views

Issues with CORS when sending API calls on local network

I'm trying to create an application that will take a midi signal from the host computer, read the midi data and when certain midi notes are detected, an API call is made to a piece of software running ...
Aaron Phillips's user avatar
0 votes
0 answers
14 views

Why am I getting preflight request doesn't pass access control check: Redirect is not allowed for a preflight request? [duplicate]

Successfully hosted my node project on Vercel but I am receiving this error, whenever I try to use the server or access the link in my client Access to XMLHttpRequest at 'http://damian-backend.vercel....
Almin Ajadi's user avatar
1 vote
1 answer
265 views

Enabling CORS not working in Next.js deploying on Vercel

I am trying to deploy a single-page app using Next.js on Vercel. I have one POST and one GET request and it deploys but I'm not able to make any requests to the API. It keeps giving me this error: ...
letmeeatbrioche's user avatar
1 vote
0 answers
41 views

Why isn't my Vercel app able to receive JSON file from API hosted on Render

This is how I'm implementing CORS on my backend const allowedOrigins = ['http://localhost:3000', 'https://(myvercelapplink).app']; app.options('*', cors()); app.use(cors({ origin: function(origin, ...
s h a u n's user avatar

15 30 50 per page