Home > Blockchain >  CORS policy: No 'Access-Control-Allow-Origin' - AWS and Vercel
CORS policy: No 'Access-Control-Allow-Origin' - AWS and Vercel

Time:08-30

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

CodePudding user response:

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

  • Related