From ab0ca586adfec8ef32885c1fd9d58129bdb81456 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Fri, 22 Jan 2016 10:57:26 -0800 Subject: [PATCH] Added the docs --- CHANGELOG.md | 1 + website/source/docs/agent/config.html.md | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6791b8f16c35..62639539b4f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ IMPROVEMENTS: * drivers: Interpret Nomad variables in environment variables/args [GH-653] * core: Populate job status [GH-663] * core/cli: Print short identifiers and UX cleanup [GH-675, GH-693, GH-692] + * api: Allow users to set arbitrary headers via agent config [GH-699] BUG FIXES: * cli: Handle parsing of un-named ports [GH-604] diff --git a/website/source/docs/agent/config.html.md b/website/source/docs/agent/config.html.md index 3c76bcee312e..4319762198f9 100644 --- a/website/source/docs/agent/config.html.md +++ b/website/source/docs/agent/config.html.md @@ -190,6 +190,15 @@ nodes, unless otherwise specified: * `disable_anonymous_signature`: Disables providing an anonymous signature for de-duplication with the update check. See `disable_update_check`. +* `http_api_response_headers`: This object allows adding headers to the + HTTP API responses. For example, the following config can be used to enable + CORS on the HTTP API endpoints: + ``` + http_api_response_headers { + Access-Control-Allow-Origin = "*" + } + ``` + ## Server-specific Options The following options are applicable to server agents only and need not be