[ML] Sending secondary auth headers to _explain (#79814)
This commit is contained in:
parent
603adab5e7
commit
57f6ecda73
|
@ -282,9 +282,12 @@ export function dataFrameAnalyticsRoutes({ router, mlLicense }: RouteInitializat
|
|||
},
|
||||
mlLicense.fullLicenseAPIGuard(async ({ client, request, response }) => {
|
||||
try {
|
||||
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics({
|
||||
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics(
|
||||
{
|
||||
body: request.body,
|
||||
});
|
||||
},
|
||||
getAuthorizationHeader(request)
|
||||
);
|
||||
return response.ok({
|
||||
body,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue