Ajax post not working, can't figure this one out |
(02-20-2021, 09:04 AM)iRedds Wrote: If you are sending JSON then the getGet/getPost/getGetPost/getPostGet methods will not work as they access the $_GET and $_POST arrays. Thank you for the documentation page, i'm receiving an HTTP 500 (Internal Server.....). Request: ![]() Error: ![]() Not a single one of your sugestions seem to work, i don't think it's a bug in CI4 otherwise someone else would have spotted way before i did? EDIT: And just like that i've found the problem, the header send in the Ajax request 'Content-Type: application/json' caused my issue. The minute i removed that from the headers array i'm receiving the post with $request->getPost();. |
Messages In This Thread |
Ajax post not working, can't figure this one out - by superior - 02-19-2021, 12:24 PM
RE: Ajax post not working, can't figure this one out - by InsiteFX - 02-19-2021, 09:42 PM
RE: Ajax post not working, can't figure this one out - by superior - 02-20-2021, 06:03 AM
RE: Ajax post not working, can't figure this one out - by InsiteFX - 02-20-2021, 07:15 AM
RE: Ajax post not working, can't figure this one out - by iRedds - 02-20-2021, 09:04 AM
RE: Ajax post not working, can't figure this one out - by superior - 02-20-2021, 09:15 AM
RE: Ajax post not working, can't figure this one out - by iRedds - 02-20-2021, 10:33 AM
RE: Ajax post not working, can't figure this one out - by superior - 02-20-2021, 10:36 AM
|