Skip to content

Commit

Permalink
Use authorisation if present, regardless of environment (elastic#138817)
Browse files Browse the repository at this point in the history
* fix: always send authorization to synth service when configured

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
2 people authored and WafaaNasr committed Oct 14, 2022
1 parent 0991066 commit d3ad278
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,11 @@ export class ServiceAPIClient {
stack_version: this.kibanaVersion,
is_edit: isEdit,
},
headers:
process.env.NODE_ENV !== 'production' && this.authorization
? {
Authorization: this.authorization,
}
: undefined,
headers: this.authorization
? {
Authorization: this.authorization,
}
: undefined,
httpsAgent: this.getHttpsAgent(url),
})
);
Expand Down

0 comments on commit d3ad278

Please sign in to comment.