You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.
Because Swagger UI uses relative links to resolve resources (like CSS, JS and images), going to /swagger will serve the correct index.html file, but the browser will call the wrong URLs when trying to resolve resources. A simple workaround is to trigger a 307 redirection from /swagger to /swagger/index.html if possible.
There is a potential trap here because I don't think Ktor has an easy way of specifying "redirect to this subroute", and we can only set a redirection to an absolute path.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Because Swagger UI uses relative links to resolve resources (like CSS, JS and images), going to
/swagger
will serve the correctindex.html
file, but the browser will call the wrong URLs when trying to resolve resources. A simple workaround is to trigger a 307 redirection from/swagger
to/swagger/index.html
if possible.There is a potential trap here because I don't think Ktor has an easy way of specifying "redirect to this subroute", and we can only set a redirection to an absolute path.
The text was updated successfully, but these errors were encountered: