Skip to content

Commit

Permalink
Fix accidental split of CORS configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kxepal committed Aug 8, 2015
1 parent 13e9832 commit d5f3abb
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/config/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,22 @@ Cross-Origin Resource Sharing
- `COS tutorial <http://www.html5rocks.com/en/tutorials/cors/>`_
- `XHR with CORS <http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/>`_

Per Virtual Host Configuration
------------------------------

To set the options for a :section:`vhosts`, you will need to create a section
with the vhost name prefixed by ``cors:``. Example case for the vhost
`example.com`::

[cors:example.com]
credentials = false
; List of origins separated by a comma
origins = *
; List of accepted headers separated by a comma
headers = X-CouchDB-Header
; List of accepted methods
methods = HEAD, GET

Cross-site Request Forgery protection
=====================================

Expand Down Expand Up @@ -586,22 +602,6 @@ Cross-site Request Forgery protection
[csrf]
timeout = 3600

Per Virtual Host Configuration
------------------------------

To set the options for a :section:`vhosts`, you will need to create a section
with the vhost name prefixed by ``cors:``. Example case for the vhost
`example.com`::

[cors:example.com]
credentials = false
; List of origins separated by a comma
origins = *
; List of accepted headers separated by a comma
headers = X-CouchDB-Header
; List of accepted methods
methods = HEAD, GET

.. _config/vhosts:

Virtual Hosts
Expand Down

0 comments on commit d5f3abb

Please sign in to comment.