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