title: Getting PayloadTooLargeError and Cors error simultaneously while sending a large file data through post request from client to server
body: <p>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).</p>
  <p><a href="https://i.stack.imgur.com/hCKXM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hCKXM.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/xQO5N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xQO5N.png" alt="enter image description here" /></a></p>
  <p>I tried using the soluyion given in the post: <a href="https://stackoverflow.com/questions/19917401/error-request-entity-too-large">Error: request entity too large</a>, but it is not working.</p>