I am working on a project which has an upload file feature. The text data from this file is to be send to the backend Node js server through axios post request and then uploaded to the database. While using a smaller file (around 4 kb), it is working fine. But when I upload a large sized file (~10000 kb), I am getting two error simultaneously. CORS error at the client side (React Js). PayloadTooLargeError at the server side (Node Js).
I tried using the soluyion given in the post: Error: request entity too large, but it is not working.