Ionic native POST sending no data

I fixed it! It ended up being the CORS issue… I had read about it but thought that because the server was getting a POST and not OPTIONS I was good, but after inspecting the request I noticed that it was in fact sending OPTIONS… I litterally added two lines of code to my express server and it fixed the issue!

var cors = require('cors');
...
app.use(cors());
1 Like