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 ?? '')