Skip to content

Commit

Permalink
add CORS default config
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Nov 10, 2012
1 parent 7fbe926 commit 3372ce9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rel/files/local.ini
Expand Up @@ -24,6 +24,7 @@
; itself. Excluding it from the list would require editing this file to update
; the whitelist.
;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}]
enable_cors = false

[httpd_global_handlers]
;_google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>}
Expand All @@ -34,6 +35,26 @@
; Basic realm="server" in order to prevent you getting logged out.
; require_valid_user = false

[cors]
credentials = false
; List of origins separated by a comma, * means accept all
origins = *
; List of accepted headers separated by a comma
; headers =
; List of accepted methods
; methods =


; Configuration for a vhost
;[cors:example.com]
; credentials = false
; List of origins separated by a comma
;origins =
; List of accepted headers separated by a comma
; headers =
; List of accepted methods
; methods =

[log]
;level = debug

Expand Down

0 comments on commit 3372ce9

Please sign in to comment.