Browse Source

🐛 Fix middleware docs link (#893)

pull/948/head
linchiwei123 5 years ago
committed by GitHub
parent
commit
4f964939a1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docs/tutorial/middleware.md

3
docs/tutorial/middleware.md

@ -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`

Loading…
Cancel
Save