[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 }) => {
|
mlLicense.fullLicenseAPIGuard(async ({ client, request, response }) => {
|
||||||
try {
|
try {
|
||||||
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics({
|
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics(
|
||||||
body: request.body,
|
{
|
||||||
});
|
body: request.body,
|
||||||
|
},
|
||||||
|
getAuthorizationHeader(request)
|
||||||
|
);
|
||||||
return response.ok({
|
return response.ok({
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue