Too Long; Didn't Read
The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs. This allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection. The solution is mentioned both in official Swagger and Spring doc link https://springdoc.org/faq.com/swagger-v3-and-microservices-776df11c. This was solved using @CrossOriginin controller using @SecurityRequirement (name = “bearer-key”)