Browse Source

Add ReDoc `<noscript>` warning when JS is disabled (#5074)

Co-authored-by: Sebastián Ramírez <[email protected]>
pull/4200/merge
Erik Vroon 3 years ago
committed by GitHub
parent
commit
de6ccd7754
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      fastapi/openapi/docs.py

3
fastapi/openapi/docs.py

@ -106,6 +106,9 @@ def get_redoc_html(
</style>
</head>
<body>
<noscript>
ReDoc requires Javascript to function. Please enable it to browse the documentation.
</noscript>
<redoc spec-url="{openapi_url}"></redoc>
<script src="{redoc_js_url}"> </script>
</body>

Loading…
Cancel
Save