diff --git a/svrswww/api/users/index.php b/svrswww/api/users/index.php index 7df2013..cf5c8db 100644 --- a/svrswww/api/users/index.php +++ b/svrswww/api/users/index.php @@ -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])) {