* cors and other basic changes

This commit is contained in:
Danyi Dávid
2017-08-09 15:47:05 +02:00
parent 05519c20ba
commit 5b0d883558
11 changed files with 341 additions and 188 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(ServerUrlMiddleware::class);
// Pipe more middleware here that you want to execute on every request: