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

Cannot try/execute endpoints within the swagger GUI when exposing it under a different path prefix via a reverse-proxy #104

Open
mgoltzsche opened this issue Dec 26, 2024 · 0 comments

Comments

@mgoltzsche
Copy link

mgoltzsche commented Dec 26, 2024

When exposing the swagger GUI under a path prefix using a reverse-proxy that sends the X-Forwarded-Prefix HTTP request header (which is already honoured when building the redirect URL) one cannot try/execute the endpoints since the reverse-proxy-defined path prefix is not honoured by the GUI.

A potential solution could be to replace the base URL within the served swagger doc.json on a per-request basis so that the JS logic within the GUI knows about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant