Skip to content

Commit

Permalink
Updated middleware doc url
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Sep 25, 2024
1 parent cd38f9a commit 185040a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/middleware.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// 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 (Slim\App $app) {
$app->addBodyParsingMiddleware();

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Middleware/CorsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,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 ?? '')
Expand Down

0 comments on commit 185040a

Please sign in to comment.