mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Use authorisation if present, regardless of environment (#138817)
* 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 <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
322cadcbe4
commit
276cd3d0ef
1 changed files with 5 additions and 6 deletions
|
@ -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),
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue