db23a3f0e9
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.
13 lines
238 B
JSON
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": "*"
|
|
}
|
|
}
|