Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add ReDoc <noscript> warning when JS is disabled #5074

Merged
merged 3 commits into from Aug 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.
tiangolo marked this conversation as resolved.
Show resolved Hide resolved
</noscript>
<redoc spec-url="{openapi_url}"></redoc>
<script src="{redoc_js_url}"> </script>
</body>
Expand Down