From f93861e321da4d3e91605f46f78e99efd5405b32 Mon Sep 17 00:00:00 2001 From: Derek Bekoe Date: Sun, 17 May 2020 03:48:02 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20cors.md=20-=20CORS=20ma?= =?UTF-8?q?x=5Fage=20600=20(#1301)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update max_age documentation from 60 to the actual default value of 600. https://github.com/encode/starlette/blob/master/starlette/middleware/cors.py#L23 Related PR https://github.com/encode/starlette/pull/909 --- docs/en/docs/tutorial/cors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/docs/tutorial/cors.md b/docs/en/docs/tutorial/cors.md index 1ebfec361..31da532e4 100644 --- a/docs/en/docs/tutorial/cors.md +++ b/docs/en/docs/tutorial/cors.md @@ -60,7 +60,7 @@ The following arguments are supported: * `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`. * `expose_headers` - Indicate any response headers that should be made accessible to the browser. Defaults to `[]`. -* `max_age` - Sets a maximum time in seconds for browsers to cache CORS responses. Defaults to `60`. +* `max_age` - Sets a maximum time in seconds for browsers to cache CORS responses. Defaults to `600`. The middleware responds to two particular types of HTTP request...