From: VISHNU V S <84698110+vishnuvskvkl@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:26:44 +0000 (+0530) Subject: 📝 Update includes for `docs/en/docs/tutorial/cors.md` (#12637) X-Git-Tag: 0.115.5~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85e0a95bde0267d6c958f298a341f63cc47a1880;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update includes for `docs/en/docs/tutorial/cors.md` (#12637) --- diff --git a/docs/en/docs/tutorial/cors.md b/docs/en/docs/tutorial/cors.md index 8dfc9bad95..a5d9b763ae 100644 --- a/docs/en/docs/tutorial/cors.md +++ b/docs/en/docs/tutorial/cors.md @@ -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.