Axios posting empty request
Axios posting empty request I am trying to send an axios request to the backend, but it ends up having an empty body , and i do not understand why it does that. This is the code for the request: axios body axios.post('/register', {email: email, password: password, username: username, company: company}).then(response => { console.log(response.data); }); And this is the code for the backend: authRouter.post('/register', (request, response) => { console.log(request.body); }); And this one outputs an empty request.body . I've also checked the JSON sent, and it is not empty at all. Is there a way to see what is the form of the request before being sent? This authRouter is a module.export , that is being used by the main app module. This app module has this configuration: request.body JSON authRouter module.export app app app.use(express.static("public")); app.use(session({ secret: "shh", resave: false, saveUninitialized: false }...