micronaut-openapi icon indicating copy to clipboard operation
micronaut-openapi copied to clipboard

Swagger UI is using external resources

Open davidgiga1993 opened this issue 3 years ago • 0 comments

Expected Behavior

When using swagger-ui.enabled=true swagger should be entirely self-contained, not depending on any external resources.

Actual Behaviour

The UI requires external resources, see screenshot below: image

This is an issue for multiple reasons:

  1. It leaks internal urls to an external CDN
  2. unpkg.com is very slow (for whatever reason) causing up to 40 seconds to load

Steps To Reproduce

  1. Enable swagger ui: swagger-ui.enabled=true
  2. Open swagger-ui and look at the requests

Environment Information

No response

Example Application

No response

Version

3.5.3

davidgiga1993 avatar Jul 26 '22 08:07 davidgiga1993