Only appears when uploading larger files, no problem when connecting to a file server in the LAN(not localhost).
Req:
This is right, the difference is just the file size.

Resp:
Access-Control-Allow-Method = [POST]
Access-Control-Allow-Headers = [x-requested-with]
Access-Control-Allow-Credentials = [true]
Access-Control-Allow-Origin = [http://localhost:3000]
CodePudding user response:
The default limit size of nginx is within 1M. add this config:
client_max_body_size xM


