Ensured Cors middleware applies for all routes, not only rest ones

This commit is contained in:
Alejandro Celaya 2021-08-16 12:49:15 +02:00
parent cd06cea153
commit 8a46b410f6

View file

@ -18,12 +18,12 @@ return [
'middleware' => [
ContentLengthMiddleware::class,
ErrorHandler::class,
Rest\Middleware\CrossDomainMiddleware::class,
],
],
'error-handler-rest' => [
'path' => '/rest',
'middleware' => [
Rest\Middleware\CrossDomainMiddleware::class,
RequestIdMiddleware::class,
ProblemDetails\ProblemDetailsMiddleware::class,
],