ContributionsMost RecentMost LikesSolutionsSwagger So my swagger works perfectly for Post API but gives an error message for get API what am i doing wrong /** * @swagger * /auth/get_currency_list: * get: * produces: * - application/json * summary: Get currency list. * description: Retrieve a list of currencies. * tags: * - Auth * security: * - JWTAuth: [] # Specify JWT as the authentication method * responses: * '200': * description: Successfully retrieved currency list. * content: * application/json: * schema: * type: array * items: * type: object * '401': * description: Unauthorized. JWT token is missing or invalid. * '500': * description: Internal server error. */ this.router .route('/get_currency_list') .get(AuthController.getCurrencyList); Re: CORS error in swagger-ui So the problem u are facing has a solution in server part try to do like this { url: 'http://localhost:8101/api/v1', description: 'Local server' }, hope this will solve ur error