Unexpected end of JSON input when sending an HTTP post request

If this is a serious project, please just throw that code away and look into using some framework like Yii or Laravel - or if PHP is not set yet maybe a simple express/node backend?

1 Like

Hello. I’m getting the same error and I’m getting OPTIONS (and POST) in my server log and it succeeds. What does it mean?