app.use(bodyParser.text({ limit: '100mb' }));
Setting this in express breaks parse server authorisation.
Steps to reproduce
Send a base64 object greater than 5MB in the post request and it breaks with a CORS error. I am assuming its because parse js-sdk calls cloud functions with content-type: plain/text.
So, to fix this, if I try to increase limit in the middleware authorisation breaks.
Expected Results
Work as expected
Actual Outcome
A CORS error with no error code but just fails via the browser.
Environment Setup
Server
parse-server version (Be specific! Don't say 'latest'.) : "parse": "^2.11.0", "parse-server": "^4.1.0",
Operating System: Amazon Linux
Hardware: m3.medium
Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): AWS
Database
MongoDB version: 4.X
Storage engine: SSD
Hardware:
Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Atlas
Issue Description
app.use(bodyParser.text({ limit: '100mb' }));
Setting this in express breaks parse server authorisation.Steps to reproduce
Send a base64 object greater than 5MB in the post request and it breaks with a CORS error. I am assuming its because parse js-sdk calls cloud functions with content-type: plain/text.
So, to fix this, if I try to increase limit in the middleware authorisation breaks.
Expected Results
Work as expected
Actual Outcome
A CORS error with no error code but just fails via the browser.
Environment Setup
Server
Database
Logs/Trace