Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229120

Ionic native POST sending no data

$
0
0

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());

Viewing all articles
Browse latest Browse all 229120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>