From b13c95cf1a3378aebc2306e5b23ab76049379d68 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 21 Aug 2016 21:21:31 +0200 Subject: [PATCH 1/2] Placed cross domain middleware as the first one for rest requests --- module/Rest/config/middleware-pipeline.config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Rest/config/middleware-pipeline.config.php b/module/Rest/config/middleware-pipeline.config.php index 817fc568..ce22dff1 100644 --- a/module/Rest/config/middleware-pipeline.config.php +++ b/module/Rest/config/middleware-pipeline.config.php @@ -7,9 +7,9 @@ return [ 'rest' => [ 'path' => '/rest', 'middleware' => [ + Middleware\CrossDomainMiddleware::class, Middleware\BodyParserMiddleware::class, Middleware\CheckAuthenticationMiddleware::class, - Middleware\CrossDomainMiddleware::class, ], 'priority' => 5, ], From fe4a4aef346b8482205e47a5a92b39cc339d2ba0 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 21 Aug 2016 21:24:00 +0200 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3da986a5..643f085f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## CHANGELOG +### 1.2.1 + +**Bugs** + +* [62: Fix cross-domain requests in REST API](https://github.com/acelaya/url-shortener/issues/62) + ### 1.2.0 **Features**