consul/ui/development_config.json
Emil Hessman cb764c35e5 add ability to specify response headers on the HTTP API
Add an config object that allows adding HTTP header response fields to every
HTTP API response.

Each specified header is added to every response from all HTTP API endpoints.
Each individual endpoint may overwrite the specified header, which makes sure
that Consul headers such as 'X-Consul-Index' is enforced by the API.
2014-12-28 19:17:08 +01:00

13 lines
238 B
JSON

{
"datacenter": "dc1",
"data_dir": "/tmp/",
"ui_dir": ".",
"bootstrap": true,
"server": true,
"acl_datacenter": "dc1",
"acl_master_token": "dev",
"http_api_response_headers": {
"Access-Control-Allow-Origin": "*"
}
}