diff --git a/DEEP.php b/DEEP.php index 590fcb7..61a2722 100755 --- a/DEEP.php +++ b/DEEP.php @@ -69,6 +69,7 @@ class DEEP { $this->app->get('/datalets-list', function(){ $this->app->response()->header("Content-Type", "application/json"); $this->app->response()->header("Access-Control-Allow-Origin", "*"); + $this->app->response()->header("Access-Control-Expose-Headers", "Location"); echo json_encode($this->all_datalets); }); @@ -77,6 +78,7 @@ class DEEP { $this->app->get('/controllets-list', function(){ $this->app->response()->header("Content-Type", "application/json"); $this->app->response()->header("Access-Control-Allow-Origin", "*"); + $this->app->response()->header("Access-Control-Expose-Headers", "Location"); echo json_encode($this->all_controllets); }); @@ -124,6 +126,7 @@ class DEEP { $this->app->response()->header("Content-Type", "application/json"); $this->app->response()->header("Access-Control-Allow-Origin", "*"); + $this->app->response()->header("Access-Control-Expose-Headers", "Location"); echo json_encode($response); }); }