📝 Update includes for `docs/en/docs/tutorial/cors.md` (#12637)

This commit is contained in:
VISHNU V S 2024-11-09 20:56:44 +05:30 committed by GitHub
parent 48c66e30db
commit 85e0a95bde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -46,9 +46,8 @@ You can also specify whether your backend allows:
* Specific HTTP methods (`POST`, `PUT`) or all of them with the wildcard `"*"`.
* Specific HTTP headers or all of them with the wildcard `"*"`.
```Python hl_lines="2 6-11 13-19"
{!../../docs_src/cors/tutorial001.py!}
```
{* ../../docs_src/cors/tutorial001.py hl[2,6:11,13:19] *}
The default parameters used by the `CORSMiddleware` implementation are restrictive by default, so you'll need to explicitly enable particular origins, methods, or headers, in order for browsers to be permitted to use them in a Cross-Domain context.