JWT and Tenant are active on my REST server. Both are required. Tenant only as a "UserClaim."
I have the option of passing a token as a header using a browser extension.
But when I call "https:\path...\swaggerui," I get the error "Failed to load API definition: Fetch Error "response status is 400 https://path.../openapi/swagger.json."
If I now try to copy and load this address in the same browser window, the JSON file is displayed correctly.
Where could the error be?
The error message in the browser network analysis/console:
"error Object { code: "TenantRequired", message: "Tenant not specified" }"
But the token definitely set the tenant correctly.
When you call the SwaggerUI, it loads a web page (HTML/JS) which in turn requests the swagger.json to load the Swagger definition.
Probably your browser extension only adds the header in the first request, but not the further requests from JavaScript. Thus, that request (to swagger.json) doesn't contain the header and fails the tenant requirement.