diff --git a/app-config.yaml b/app-config.yaml index a0cc6a48b4..3eb6311463 100644 --- a/app-config.yaml +++ b/app-config.yaml @@ -110,8 +110,10 @@ proxy: '/gocd': target: https://your.gocd.instance.com/go/api allowedMethods: ['GET'] + allowedHeaders: ['Authorization', 'Accept'] headers: - Authorization: ${GOCD_AUTH_TOKEN} + Authorization: Basic ${GOCD_AUTH_TOKEN} + Accept: application/vnd.go.cd+json organization: name: My Company @@ -458,4 +460,4 @@ apacheAirflow: baseUrl: https://your.airflow.instance.com gocd: - baseUrl: https://your.gocd.instance.com \ No newline at end of file + baseUrl: https://your.gocd.instance.com diff --git a/plugins/gocd/README.md b/plugins/gocd/README.md index 9dcf23705d..96329e7e13 100644 --- a/plugins/gocd/README.md +++ b/plugins/gocd/README.md @@ -41,8 +41,10 @@ proxy: '/gocd': target: '/go/api' allowedMethods: ['GET'] + allowedHeaders: ['Authorization', 'Accept'] headers: - Authorization: ${GOCD_AUTH_TOKEN} + Authorization: Basic ${GOCD_AUTH_TOKEN} + Accept: application/vnd.go.cd+json ``` You should also include the `gocd` section to allow for the plugin to redirect back to GoCD pipelines in your deployed instance: