Opensearch dashboards.legacycallapioptions.wrap401errors
Home > opensearch-dashboards > LegacyCallAPIOptions > wrap401Errors
LegacyCallAPIOptions.wrap401Errors property
Indicates whether 401 Unauthorized
errors returned from the OpenSearch API should be wrapped into Boom
error instances with properly set WWW-Authenticate
header that could have been returned by the API itself. If API didn't specify that then Basic realm="Authorization Required"
is used as WWW-Authenticate
.
Signature:
wrap401Errors?: boolean;