App Script sends 405 response when trying to send a POST request

I have published an app script publicly (Anyone, even anonymous) with a doPost method as follow, function doPost(e){ var sheet = SpreadsheetApp.getActiveSheet(); var length = e.contentLeng...