* cors+preflight

* timeout change
This commit is contained in:
Dávid Danyi
2017-08-01 18:16:33 +02:00
parent f196244f7c
commit e23054315b
6 changed files with 71 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ use Zend\Stratigility\Middleware\ErrorHandler;
// The error handler should be the first (most outer) middleware to catch
// all Exceptions.
$app->pipe(ErrorHandler::class);
$app->pipe(App\Middleware\PreFlightMiddleware::class);
$app->pipe(LosMiddleware\BasePath\BasePath::class);
$app->pipe(ServerUrlMiddleware::class);