Correct way to sanitize and secure file_get_contents(‘php://input’) Lets say you have a front end app sending reqiests to a php backend. On the front end: