CodeIgniter Forums
Ajax call results in 403 Forbidden error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Ajax call results in 403 Forbidden error (/showthread.php?tid=84726)



Ajax call results in 403 Forbidden error - somsri91282 - 11-03-2022

Hi
When I try to receive some data (non-cross-domain) by using ajax on a controller/method the result is always 403 Forbidden. I am able to access that page myself from within my browser without any problems.

I've tried a lot of different things like trying to send post data or using a different browser. I've also removed the 'No direct script access allowed' but it gives me the same result.

By using various search engines Big Grin I came up with some similar problems. But none of them had a clear answer to the problem. I'd like to hear what I'm doing wrong or if it is a CI-bug. I am using 3.x development and I am aware of the bugs and/or problems it might have.

Thank
jili slot