Skip to content

Commit

Permalink
Add null header to child client spawn (opensearch-project#2188)
Browse files Browse the repository at this point in the history
Signed-off-by: Su <[email protected]>
  • Loading branch information
zhongnansu authored and kristenTian committed Sep 14, 2022
1 parent 161bdbc commit e3b893d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/data_source/server/client/configure_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,9 @@ const getBasicAuthClient = (
username,
password,
},
// Child client doesn't allow auth option, adding null auth header to bypass,
// so logic in child() can rebuild the auth header based on the auth input.
// See https://github.com/opensearch-project/OpenSearch-Dashboards/issues/2182 for details
headers: { authorization: null },
});
};

0 comments on commit e3b893d

Please sign in to comment.