diff --git a/.changeset/hungry-suns-hope.md b/.changeset/hungry-suns-hope.md new file mode 100644 index 0000000000..4d88a5f48a --- /dev/null +++ b/.changeset/hungry-suns-hope.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-backend-module-backstage-openapi': patch +--- + +Use direct access of openapi.json files and not external route diff --git a/plugins/catalog-backend-module-backstage-openapi/src/InternalOpenApiDocumentationProvider.ts b/plugins/catalog-backend-module-backstage-openapi/src/InternalOpenApiDocumentationProvider.ts index 17e5a331f0..dd94000ad7 100644 --- a/plugins/catalog-backend-module-backstage-openapi/src/InternalOpenApiDocumentationProvider.ts +++ b/plugins/catalog-backend-module-backstage-openapi/src/InternalOpenApiDocumentationProvider.ts @@ -122,7 +122,7 @@ const loadSpecs = async ({ }) => { const specs: OpenAPIObject[] = []; for (const pluginId of plugins) { - const url = await discovery.getExternalBaseUrl(pluginId); + const url = await discovery.getBaseUrl(pluginId); const openApiUrl = getOpenApiSpecRoute(url); const { token } = await auth.getPluginRequestToken({ onBehalfOf: await auth.getOwnServiceCredentials(),