Axios posting params not read by $_POST
From the documentation (I haven’t preserved links in the quoted material): Using application/x-www-form-urlencoded format By default, axios serializes JavaScript objects to JSON. PHP doesn’t support JSON as a data format for populating $_POST. It only supports the machine-processable formats natively supported by HTML forms: application/x-www-form-urlencoded multipart/form-data To send data in the application/x-www-form-urlencoded format instead, you … Read more