Mrknem na to a vyzkusam to, ale asi az v pondelok ;)


On Fri, May 3, 2013 at 12:52 PM, Martin Halamíèek
<notifications@github.com>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;
>
> Aby to potom ala na ten OPTIONS dotaz nezaèalo u¾ nìco vykonávat:)
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/keboola/syrup-component-bundle/pull/5/files#r4071836>
> .
>