From 954fdeb41a1fc37d0686058f60af4c79746e1e9f Mon Sep 17 00:00:00 2001 From: samuelgfeller Date: Wed, 25 Sep 2024 13:37:29 +0200 Subject: [PATCH] Updated middleware doc url --- config/middleware.php | 2 +- src/Application/Middleware/CorsMiddleware.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/middleware.php b/config/middleware.php index a8056228..a6e545ff 100644 --- a/config/middleware.php +++ b/config/middleware.php @@ -11,7 +11,7 @@ use SlimErrorRenderer\Middleware\NonFatalErrorHandlingMiddleware; // Slim middlewares are LIFO (last in, first out) so when responding, the order is backwards -// https://samuel-gfeller.ch/docs/Slim-Middleware#order-of-execution +// https://samuel-gfeller.ch/docs/Slim-Middlewares#order-of-execution return function (App $app) { $app->addBodyParsingMiddleware(); diff --git a/src/Application/Middleware/CorsMiddleware.php b/src/Application/Middleware/CorsMiddleware.php index b8449291..d3a081f4 100644 --- a/src/Application/Middleware/CorsMiddleware.php +++ b/src/Application/Middleware/CorsMiddleware.php @@ -34,7 +34,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface $response = $handler->handle($request); } // Add response headers in post-processing before the response is sent - // https://samuel-gfeller.ch/docs/Slim-Middleware#order-of-execution + // https://samuel-gfeller.ch/docs/Slim-Middlewares#order-of-execution $response = $response ->withHeader('Access-Control-Allow-Credentials', 'true') ->withHeader('Access-Control-Allow-Origin', $this->allowedOrigin ?? '')