Welcome Guest, Not a member yet? Register   Sign In
Axios POST requests and Ci security class
#4

(12-18-2018, 08:29 AM)skunkbad Wrote: See this:
https://github.com/axios/axios/issues/1498

and search on Google for "axios php $_POST"

(12-18-2018, 10:19 AM)qury Wrote: Hi
instead of sending "raw" json data, send formData
I had the same problem initially.

var formdata = new formData ();
formdata.append('key','value');

then send formdata with axios you will be able to access $_POST['key'] from php as usual

Thank you.
I'll use formData then.
Reply


Messages In This Thread
RE: Axios POST requests and Ci security class - by enelson - 12-21-2018, 04:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB