I am developing a responsive user interface in CakePHP 4.x which occasionally uses Ajax requests. My Ajax requests are performing just fine but I am having a lot of trouble