diff --git a/CHANGELOG.md b/CHANGELOG.md index 72fa8244..87f9f68e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this ### Changed * [#1142](https://github.com/shlinkio/shlink/issues/1142) Replaced `doctrine/cache` package with `symfony/cache`. +* [#1157](https://github.com/shlinkio/shlink/issues/1157) All routes now support CORS, not only rest ones. ### Deprecated * *Nothing* diff --git a/config/autoload/middleware-pipeline.global.php b/config/autoload/middleware-pipeline.global.php index 0466ebc5..becd3ad3 100644 --- a/config/autoload/middleware-pipeline.global.php +++ b/config/autoload/middleware-pipeline.global.php @@ -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, ],