diff --git a/versioned_docs/version-latest/04-standard-library/01-cloud/api.md b/versioned_docs/version-latest/04-standard-library/01-cloud/api.md index 1f3a0d773..af3949cdf 100644 --- a/versioned_docs/version-latest/04-standard-library/01-cloud/api.md +++ b/versioned_docs/version-latest/04-standard-library/01-cloud/api.md @@ -488,6 +488,7 @@ let ApiCorsOptions = cloud.ApiCorsOptions{ ... }; | allowMethods | MutArray<HttpMethod> | The list of allowed methods. | | allowOrigin | MutArray<str> | The list of allowed allowOrigin. | | exposeHeaders | MutArray<str> | The list of exposed headers. | +| maxAge | duration | How long the browser should cache preflight request results. | --- @@ -584,6 +585,19 @@ The list of exposed headers. ``` +##### `maxAge`Optional + +```wing +maxAge: duration; +``` + +- *Type:* duration +- *Default:* 300 seconds + +How long the browser should cache preflight request results. + +--- + ### ApiDeleteProps Options for Api put endpoint.