From 055848c754699c340c3aefe957de184a4bd8ae15 Mon Sep 17 00:00:00 2001 From: yoavstr Date: Tue, 2 Dec 2025 11:52:38 +0100 Subject: [PATCH] fix: :bug: fix outdates redoc cdn link Previously, redoc.standalone.js file was hosted in jsdelivr.net. This returns 404 now. To fix this, the hoster was changed to unpkg.com --- fastapi/openapi/docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 74b23a370..79b02756c 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -189,7 +189,7 @@ def get_redoc_html( It is normally set to a CDN URL. """ ), - ] = "https://cdn.jsdelivr.net/npm/redoc@2/bundles/redoc.standalone.js", + ] = "https://unpkg.com/redoc@latest/bundles/redoc.standalone.js", redoc_favicon_url: Annotated[ str, Doc(