@@ -16,9 +16,9 @@ |
||
16 | 16 | } |
17 | 17 | |
18 | 18 | public function afterController($controller, $methodName, Response $response) { |
19 | - if($response instanceof JSONResponse){ |
|
19 | + if ($response instanceof JSONResponse) { |
|
20 | 20 | $origin = $this->request->server['HTTP_ORIGIN']; |
21 | - if($origin) { |
|
21 | + if ($origin) { |
|
22 | 22 | $response->addHeader('Access-Control-Allow-Origin', $origin); |
23 | 23 | } |
24 | 24 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | } |
17 | 17 | |
18 | 18 | public function afterController($controller, $methodName, Response $response) { |
19 | - if($response instanceof JSONResponse){ |
|
19 | + if($response instanceof JSONResponse) { |
|
20 | 20 | $origin = $this->request->server['HTTP_ORIGIN']; |
21 | 21 | if($origin) { |
22 | 22 | $response->addHeader('Access-Control-Allow-Origin', $origin); |