Skip to content

Commit

Permalink
✨ Add ReDoc <noscript> warning when JS is disabled (#5074)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
  • Loading branch information
evroon and tiangolo committed Aug 26, 2022
1 parent 26c68c6 commit de6ccd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fastapi/openapi/docs.py
Expand Up @@ -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>
Expand Down

0 comments on commit de6ccd7

Please sign in to comment.