mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-26 23:18:37 +03:00
Fixed cross-domain headers being lost when ProblemDetailsMiddleware throws an error
This commit is contained in:
parent
4685572def
commit
6c37905c15
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -271,7 +271,7 @@
|
|||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "./Error.json"
|
||||
"$ref": "../definitions/Error.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "./Error.json"
|
||||
"$ref": "../definitions/Error.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
|
|
Loading…
Reference in a new issue