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?