From b8e6d18385fbe51a671f40b7606e8cd7faa49be0 Mon Sep 17 00:00:00 2001 From: John Riebold Date: Thu, 5 Nov 2020 13:57:16 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8C=20Relax=20Swagger=20UI=20version?= =?UTF-8?q?=20pin=20(#2089)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/openapi/docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 45b662a0b..44c4e69a3 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -9,8 +9,8 @@ def get_swagger_ui_html( *, openapi_url: str, title: str, - swagger_js_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.30.0/swagger-ui-bundle.js", - swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.30.0/swagger-ui.css", + swagger_js_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js", + swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css", swagger_favicon_url: str = "https://fastapi.tiangolo.com/img/favicon.png", oauth2_redirect_url: Optional[str] = None, init_oauth: Optional[dict] = None,