![]() |
500 error when Post data through ajax when csrf is true - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: 500 error when Post data through ajax when csrf is true (/showthread.php?tid=50701) |
500 error when Post data through ajax when csrf is true - El Forum - 04-05-2012 [eluser]bleu[/eluser] I am using the below code to get values through ajax. When I disable csrf it posts properly , but when I turn csrf true it gives me 500 error Any Ideas as to how I can solve this? Code: [removed] 500 error when Post data through ajax when csrf is true - El Forum - 04-05-2012 [eluser]InsiteFX[/eluser] Error 500 is a server error! 500 error when Post data through ajax when csrf is true - El Forum - 04-05-2012 [eluser]bleu[/eluser] [quote author="InsiteFX" date="1333614521"]Error 500 is a server error! [/quote] I find Code: 500 Internal Server Error When csrf is off there is no error 500 error when Post data through ajax when csrf is true - El Forum - 04-05-2012 [eluser]InsiteFX[/eluser] Try reading this: CodeIgniter CSRF Protection 500 error when Post data through ajax when csrf is true - El Forum - 04-05-2012 [eluser]bleu[/eluser] [quote author="bleu" date="1333611197"]I am using the below code to get values through ajax. When I disable csrf it posts properly , but when I turn csrf true it gives me 500 error Any Ideas as to how I can solve this? Code: [removed] I did it like this Code: $.ajax({ I added &csrf;_test_name instead of ,csrf_test_name |