Skip to content

Self-host the Swagger UI assets #425

Description

@FumingPower3925

middleware/swagger defaults to pulling swagger-ui-dist / scalar / redoc from public CDNs at unpinned versions — a supply-chain, CSP and offline-usage liability. Embed the assets with go:embed and serve them by default; make the CDN opt-in.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    middlewareMiddleware implementationsecuritySecurity hardening

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions