Taky mam pocit, že ten die tam by nemuselo bejt to pravý ořechový, mělo by to jít zastavit i jinak… ?


--
Ondrej Hlavacek
Developer, Keboola 
+1 (778) 551 2270 
@keboola

On 3. 5. 2013, at 3:54, Miroslav Čillík <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;
> Mrknem na to a vyzkusam to, ale asi az v pondelok ;)
> …
> —
> Reply to this email directly or view it on GitHub.
>