]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏ Fix minor typos in docs (#2122)
authorTeofilo Zosa <TeoZosa@users.noreply.github.com>
Thu, 5 Nov 2020 22:20:55 +0000 (14:20 -0800)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 22:20:55 +0000 (23:20 +0100)
docs/en/docs/tutorial/cors.md
docs/en/docs/tutorial/testing.md

index 50b83969bcf952071d968cf817fd8fb068faca32..4ab3da3b4fb46987afa6079928de2ef43ea3cf0e 100644 (file)
@@ -55,7 +55,7 @@ The default parameters used by the `CORSMiddleware` implementation are restricti
 The following arguments are supported:
 
 * `allow_origins` - A list of origins that should be permitted to make cross-origin requests. E.g. `['https://example.org', 'https://www.example.org']`. You can use `['*']` to allow any origin.
-* `allow_origin_regex` - A regex string to match against origins that should be permitted to make cross-origin requests. eg. `'https://.*\.example\.org'`.
+* `allow_origin_regex` - A regex string to match against origins that should be permitted to make cross-origin requests. e.g. `'https://.*\.example\.org'`.
 * `allow_methods` - A list of HTTP methods that should be allowed for cross-origin requests. Defaults to `['GET']`. You can use `['*']` to allow all standard methods.
 * `allow_headers` - A list of HTTP request headers that should be supported for cross-origin requests. Defaults to `[]`. You can use `['*']` to allow all headers. The `Accept`, `Accept-Language`, `Content-Language` and `Content-Type` headers are always allowed for CORS requests.
 * `allow_credentials` - Indicate that cookies should be supported for cross-origin requests. Defaults to `False`. Also, `allow_origins` cannot be set to `['*']` for credentials to be allowed, origins must be specified.
index 70195b25b993be3e104fbf686139eeeb6054c8ae..99338189a359c3cf068f2e566ada685facba992f 100644 (file)
@@ -102,7 +102,7 @@ For more information about how to pass data to the backend (using `requests` or
 !!! info
     Note that the `TestClient` receives data that can be converted to JSON, not Pydantic models.
 
-    If you have a Pydantic model in your test and you want to send its data to the application during testing, you can use the `jsonable_encoder` descibed in [JSON Compatible Encoder](encoder.md){.internal-link target=_blank}.
+    If you have a Pydantic model in your test and you want to send its data to the application during testing, you can use the `jsonable_encoder` described in [JSON Compatible Encoder](encoder.md){.internal-link target=_blank}.
 
 ## Run it