I have implemented an Ajax request on my website, and I am calling the endpoint from a webpage. It always returns 200 OK, but jQuery execut
See this. Its also similar problem. Working i tried.
Dont remove dataType: 'JSON',
dataType: 'JSON',
Note: echo only JSON Formate in PHP file if you use only php echo your ajax code return 200