Commit ce648e18122a2d0c6dba8d48cba45a3ab0e0d66d

Authored by Andrea Petta
1 parent a8e7c2ae

l20n bug fix

Showing 1 changed file with 3 additions and 0 deletions
DEEP.php
@@ -69,6 +69,7 @@ class DEEP { @@ -69,6 +69,7 @@ class DEEP {
69 $this->app->get('/datalets-list', function(){ 69 $this->app->get('/datalets-list', function(){
70 $this->app->response()->header("Content-Type", "application/json"); 70 $this->app->response()->header("Content-Type", "application/json");
71 $this->app->response()->header("Access-Control-Allow-Origin", "*"); 71 $this->app->response()->header("Access-Control-Allow-Origin", "*");
  72 + $this->app->response()->header("Access-Control-Expose-Headers", "Location");
72 echo json_encode($this->all_datalets); 73 echo json_encode($this->all_datalets);
73 74
74 }); 75 });
@@ -77,6 +78,7 @@ class DEEP { @@ -77,6 +78,7 @@ class DEEP {
77 $this->app->get('/controllets-list', function(){ 78 $this->app->get('/controllets-list', function(){
78 $this->app->response()->header("Content-Type", "application/json"); 79 $this->app->response()->header("Content-Type", "application/json");
79 $this->app->response()->header("Access-Control-Allow-Origin", "*"); 80 $this->app->response()->header("Access-Control-Allow-Origin", "*");
  81 + $this->app->response()->header("Access-Control-Expose-Headers", "Location");
80 echo json_encode($this->all_controllets); 82 echo json_encode($this->all_controllets);
81 83
82 }); 84 });
@@ -124,6 +126,7 @@ class DEEP { @@ -124,6 +126,7 @@ class DEEP {
124 126
125 $this->app->response()->header("Content-Type", "application/json"); 127 $this->app->response()->header("Content-Type", "application/json");
126 $this->app->response()->header("Access-Control-Allow-Origin", "*"); 128 $this->app->response()->header("Access-Control-Allow-Origin", "*");
  129 + $this->app->response()->header("Access-Control-Expose-Headers", "Location");
127 echo json_encode($response); 130 echo json_encode($response);
128 }); 131 });
129 } 132 }