]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:bug: Fix middleware docs link (#893)
authorlinchiwei123 <40888469+linchiwei123@users.noreply.github.com>
Tue, 4 Feb 2020 02:27:10 +0000 (10:27 +0800)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2020 02:27:10 +0000 (03:27 +0100)
docs/tutorial/middleware.md

index b37ff75f1b0ca9c34f17da4ca9beaf6552c1c5ff..9e348aa7b8cabed037dc9d63ea323a9ed33ddfd8 100644 (file)
@@ -28,8 +28,7 @@ The middleware function receives:
 !!! tip
     Have in mind that custom proprietary headers can be added <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers" class="external-link" target="_blank">using the 'X-' prefix</a>.
 
-    But if you have custom headers that you want a client in a browser to be able to see, you need to add them to your CORS configurations ([CORS (Cross-Origin Resource Sharing)
-](cors.md){.internal-link target=_blank}) using the parameter `expose_headers` documented in <a href="https://www.starlette.io/middleware/#corsmiddleware" class="external-link" target="_blank">Starlette's CORS docs</a>.
+    But if you have custom headers that you want a client in a browser to be able to see, you need to add them to your CORS configurations ([CORS (Cross-Origin Resource Sharing)](cors.md){.internal-link target=_blank}) using the parameter `expose_headers` documented in <a href="https://www.starlette.io/middleware/#corsmiddleware" class="external-link" target="_blank">Starlette's CORS docs</a>.
 
 ### Before and after the `response`