Remove code examples for Python 3.8 in `cors`

This commit is contained in:
Yurii Motov 2025-12-10 20:12:50 +01:00
parent 0d0f1830c5
commit e4a4b0e4fa
3 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ 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 `"*"`.
{* ../../docs_src/cors/tutorial001.py hl[2,6:11,13:19] *}
{* ../../docs_src/cors/tutorial001_py39.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.

View File

@ -1,6 +1,6 @@
from fastapi.testclient import TestClient
from docs_src.cors.tutorial001 import app
from docs_src.cors.tutorial001_py39 import app
def test_cors():