PHP Post request working in Postman but not in React with Axios
I have a server written in PHP and it have some routes The routes work fine with postman But when I use React with Axios it gives error Here is the PHP code header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: GET,POST,DELETE,OPTIONS");…