From bb9654311a519049082c865f4b78394edd47a6b4 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Mon, 11 Mar 2019 03:17:47 +0000 Subject: [PATCH] Commented out extra headers --- svrswww/api/users/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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])) {