Update index.php

Solving for Error "Request header field Content-Type is not allowed by Access-Control-Allow-Headers"