SyntaxFix
Write A Post
Hire A Developer
Questions
By using the requestInterceptor, it worked for me:
const ui = SwaggerUIBundle({ ... requestInterceptor: (req) => { req.headers.Authorization = "Bearer " + req.headers.Authorization; return req; }, ... });