CORS policy: No 'Access-Control-Allow-Origin' – AWS and Vercel


I have a small problem with my API that I use with Express JS, I deployed on AWS and Vercel the problem is the same except for Heroku.

All my GET POST routes work fine. except when I want to upload a video on my frontend in REACT I have this error that you see in the photo.

I tried all the possible parameters with the configuration of the cors.

Everything works locally
enter image description here


Your POST request giving you 413 HTTP error that occurs when the size of a client’s request exceeds the server’s file size your case the size of the video you want to uploded bigger than the size of the server limit

Answered By – monim

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published