Commented out extra headers

This commit is contained in:
2019-03-11 03:17:47 +00:00
parent 384521a281
commit bb9654311a
+2 -2
View File
@@ -28,13 +28,13 @@ $endpoints = array(
'userstask' => array('POST'),
'createtask' => array('POST')
);
/*
header("Access-Control-Allow-Origin: *");
header("Access-Control-Expose-Headers: Access-Control-Allow-Origin");
header("Access-Control-Allow-Headers: Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With");
header("Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS");
header('Content-type: application/json');
*/
$endpoint = strtolower(str_replace('/api/users/', '', strtok($_SERVER['REQUEST_URI'], '?')));
if (!isset($endpoints[$endpoint])) {