admin-ajax.php doesn’t work when using POST data and Axios
The issue here, I think, is how axios works. Not WordPress. But you’re absolutely correct to want to use a POST request here. By default I believe axios sends data in a POST request as JSON in the body. To get JSON in the body of the request in PHP you need to do this … Read more