Fixed cross-domain headers being lost when ProblemDetailsMiddleware throws an error

This commit is contained in:
Alejandro Celaya 2019-11-29 19:24:04 +01:00
parent 4685572def
commit 6c37905c15
3 changed files with 3 additions and 3 deletions

View file

@ -20,6 +20,7 @@ return [
'error-handler-rest' => [
'path' => '/rest',
'middleware' => [
Rest\Middleware\CrossDomainMiddleware::class,
Rest\Middleware\BackwardsCompatibleProblemDetailsMiddleware::class,
ProblemDetails\ProblemDetailsMiddleware::class,
],
@ -47,7 +48,6 @@ return [
'rest' => [
'path' => '/rest',
'middleware' => [
Rest\Middleware\CrossDomainMiddleware::class,
Expressive\Router\Middleware\ImplicitOptionsMiddleware::class,
Rest\Middleware\BodyParserMiddleware::class,
Rest\Middleware\AuthenticationMiddleware::class,

View file

@ -271,7 +271,7 @@
"type": "object",
"allOf": [
{
"$ref": "./Error.json"
"$ref": "../definitions/Error.json"
},
{
"type": "object",

View file

@ -154,7 +154,7 @@
"type": "object",
"allOf": [
{
"$ref": "./Error.json"
"$ref": "../definitions/Error.json"
},
{
"type": "object",