mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Sending secondary auth headers to _explain (#79814)
This commit is contained in:
parent
603adab5e7
commit
57f6ecda73
1 changed files with 6 additions and 3 deletions
|
@ -282,9 +282,12 @@ export function dataFrameAnalyticsRoutes({ router, mlLicense }: RouteInitializat
|
|||
},
|
||||
mlLicense.fullLicenseAPIGuard(async ({ client, request, response }) => {
|
||||
try {
|
||||
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics({
|
||||
body: request.body,
|
||||
});
|
||||
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics(
|
||||
{
|
||||
body: request.body,
|
||||
},
|
||||
getAuthorizationHeader(request)
|
||||
);
|
||||
return response.ok({
|
||||
body,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue