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 8a4d365 commit 954fdeb
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
Expand Up @@ -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();

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 @@ -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 ?? '')
Expand Down

0 comments on commit 954fdeb

Please sign in to comment.