Ajax call implementation. How does it works within oxid?

Ok, but I don’t receive any error, either exception. log file stays unchanged. I’ve updated the url as you shown, the status code of request is now 200, seems to be ok, but still something is wrong. As responce I recieve html of home page. Nothing relative to this problem in apache log files too. I added die(‘request died’); in test(), but it still continues returning the home page.
Thank you for responce.
General:

  1. Request URL: http://oxid.loc/index.php?lang=1&cl=MyController&fnc=test
  2. Request Method: POST
  3. Status Code: 200 OK
  4. Remote Address: 127.0.0.1:8
  5. Referrer Policy: no-referrer-when-downgrade

Responce headers
Server: Apache/2.4.29 (Ubuntu)
Set-Cookie: language=1; path=/; HttpOnly
Set-Cookie: sid=3bvrleogba61m8q3dr74lr70kb; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 9715
Keep-Alive: timeout=5, max=96
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8