You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gerwinbrunner I know this is coming really late, but I figured out how to do this in case it helps you or anyone else. From the body-parser documentation:
verify
The verify option, if supplied, is called as verify(req, res, buf, encoding), where buf is a Buffer of the raw request body and encoding is the encoding of the request. The parsing can be aborted by throwing an error.
So you can pass a verify function to bodyParser.json like this: Picker.middleware(bodyParser.json({ verify: verifyParsing }));
Hi,
how can I get the raw body and also the json body from a request?
Currently I use
And this works fine, but for security checks I would also need the raw body. How could I get both of them?
Best,
Gerwin
The text was updated successfully, but these errors were encountered: