-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Closed
Labels
Description
I was trying the sample mentioned on the https://fastapi.tiangolo.com/#installation page.
fastapi 0.63.0
Python 3.8.5
The API calls work as required via curl / browser, however the Interactive API docs / Swagger UI doesn't load.
Checking with Chrome DevTools shows the following :
GET https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css net::ERR_CERT_AUTHORITY_INVALID
GET https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js net::ERR_CERT_AUTHORITY_INVALID
docs:15 Uncaught ReferenceError: SwaggerUIBundle is not defined
This seems to be an issue with the CDN from where the Swagger UI related resources are being fetched.
Is there any alternative that can be used for this ?