Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Everything works locally
enter image description here

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading