<?php

require_once __DIR__ . '/../vendor/autoload.php';

$app = require_once __DIR__ . '/../app/bootstrap.php';
$app->run();

<?php

require_once __DIR__ . '/../vendor/autoload.php';

use Asm89\Stack\Cors;
use Symfony\Component\HttpFoundation\Request;

$app = require_once __DIR__ . '/../app/bootstrap.php';

$stackedApp = new Cors($app, array(
    'allowedOrigins' => array('http://localhost:8000'),
    'allowedMethods' => array('DELETE', 'GET', 'PUT', 'POST'),
    'allowedHeaders' => array('accept', 'content-type', 'origin', 'x-requested-with'),
));

$request = Request::createFromGlobals();

$response = $stackedApp->handle($request);
$response->send();

$app->terminate($request, $response);

Add Cors to api. Configured for local development for now.
Add Cors to api. Configured for local development for now.
