CSRF vuejs-axios not working |
Hi,
Spending hours to post some vuejs - axios data to my codeigniter. PHP Code: axios({ In my config the token name is "csrf_token". csrf_regenerate is FALSE just to simplify the problem. http://puppyplaza.dev/api/save profile is a for now a simple controller to display the result (on my localhost) PHP Code: public function saveprofile() With Jquery it works ![]() data: {'csrf_token':'b2897db3f48b2c08c7313f280b290eb3'}, With axios it wont! ![]() Please, please anyone!? |
Messages In This Thread |
CSRF vuejs-axios not working - by ponzo - 10-11-2017, 08:34 AM
RE: CSRF vuejs-axios not working - by ponzo - 10-12-2017, 02:50 AM
RE: CSRF vuejs-axios not working - by Paradinight - 10-12-2017, 08:04 PM
RE: CSRF vuejs-axios not working - by bartMommens - 10-22-2019, 02:25 PM
|