Vlastně asi ne ;o) kopíroval jsem to z nějakýho zendovýho extraktoru a toho jsem si nevšiml. Klidně to změň.


On Friday, 3. May 2013 at 12:13, Miroslav Čillík wrote:

> In Controller/ApiController.php:
> > @@ -22,6 +22,16 @@ public function preExecute() > { > $request = $this->getRequest(); > > + if ($request->getMethod() == "OPTIONS") { > + $response = new Response(); > + $response->headers->set('Access-Control-Allow-Origin', '*'); > + $response->headers->set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); > + $response->headers->set('Access-Control-Allow-Headers', 'content-type, x-requested-with, x-requested-by, x-storageapi-url, x-storageapi-token, x-kbc-runid'); > + $response->headers->set('Access-Control-Max-Age', '86400'); > + $response->send(); > + die;  
> Ten "die" tam musi byt? :) nie radsej return?
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/keboola/syrup-component-bundle/pull/5/files#r4071474).
>  
>  
>