Swagger: Load embedded icons from CDN (#114632)

This commit is contained in:
Josh Hunt
2025-12-01 11:17:28 +00:00
committed by GitHub
parent 7fce2d9516
commit 32b9bebc75
3 changed files with 11 additions and 10 deletions
+2 -4
View File
@@ -30,10 +30,8 @@ func (hs *HTTPServer) registerSwaggerUI(r routing.RouteRegister) {
}
data := map[string]any{
"Nonce": c.RequestNonce,
"Assets": assets,
"FavIcon": "public/img/fav32.png",
"AppleTouchIcon": "public/img/apple-touch-icon.png",
"Nonce": c.RequestNonce,
"Assets": assets,
}
if hs.Cfg.CSPEnabled {
data["CSPEnabled"] = true