Does it mandatory to always specify header when building an api endpoint at PHP?
e.g.
header("Access-Control-Allow-Origin: *"); header("