Swagger: Load embedded icons from CDN (#114632)
This commit is contained in:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user