You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fl...@apache.org on 2019/02/10 09:31:20 UTC
[couchdb-documentation] branch master updated: Mention [cors]
max_age (#389)
This is an automated email from the ASF dual-hosted git repository.
flimzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
The following commit(s) were added to refs/heads/master by this push:
new 09b11bb Mention [cors] max_age (#389)
09b11bb is described below
commit 09b11bb2e9aed1c94b89872d459ade6e1424a85f
Author: Clemens Stolle <kl...@fastmail.fm>
AuthorDate: Sun Feb 10 10:31:16 2019 +0100
Mention [cors] max_age (#389)
---
src/config/http.rst | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/config/http.rst b/src/config/http.rst
index aa38009..2c64911 100644
--- a/src/config/http.rst
+++ b/src/config/http.rst
@@ -568,6 +568,14 @@ Cross-Origin Resource Sharing
[cors]
methods = GET,POST
+ .. config:option:: max_age
+
+ Sets the ``Access-Control-Max-Age`` header in seconds. Use it to
+ avoid repeated ``OPTIONS`` requests.
+
+ [cors]
+ max_age = 3600
+
.. seealso::
Original JIRA `implementation ticket <https://issues.apache.org/jira/browse/COUCHDB-431>`_