We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
For Springdoc UI behind the proxy I have created some automated tests.
They helped me to understand, that based on the X-Forwarded-Prefix header following are updated automatically:
X-Forwarded-Prefix
configUrl
url
oauth2RedirectUrl
To Reproduce
I have tested it for org.springdoc:springdoc-openapi-ui:1.6.7.
org.springdoc:springdoc-openapi-ui:1.6.7
I didn't test it, but prepared automated tests for 1.x and 2.x versions:
org.springdoc:springdoc-openapi-webflux-ui:1.6.9-SNAPSHOT
org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.0-M3-SNAPSHOT
org.springdoc:springdoc-openapi-starter-webflux-ui:2.0.0-M3-SNAPSHOT
Expected behavior
Additional context
Related to issues: #534, #331, #153.
I also noticed that there is difference between ui paths for webmvc and webflux versions:
/swagger-ui/index.html
/webjars/swagger-ui/index.html
Not sure if it is possible to have both at the same time, but if not, then maybe it would be better to have the same default (for version 2.x)?
The text was updated successfully, but these errors were encountered:
@wiiitek,
For the difference between ui paths for webmvc and webflux version, it's normal and explained here #24
Not sure, there is an easy way to get this convergence of paths. But you have a proposal, feel free to propose a PR.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
For Springdoc UI behind the proxy I have created some automated tests.
They helped me to understand, that based on the
X-Forwarded-Prefix
header following are updated automatically:configUrl
path returned in swagger-initializer.jsurl
(and alsoconfigUrl
) path returned at config URL locationoauth2RedirectUrl
returned at config URL locationTo Reproduce
I have tested it for
org.springdoc:springdoc-openapi-ui:1.6.7
.I didn't test it, but prepared automated tests for 1.x and 2.x versions:
org.springdoc:springdoc-openapi-webflux-ui:1.6.9-SNAPSHOT
- redorg.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.0-M3-SNAPSHOT
- greenorg.springdoc:springdoc-openapi-starter-webflux-ui:2.0.0-M3-SNAPSHOT
- redExpected behavior
X-Forwarded-Prefix
should be supportedAdditional context
Related to issues: #534, #331, #153.
I also noticed that there is difference between ui paths for webmvc and webflux versions:
/swagger-ui/index.html
for webmvc/webjars/swagger-ui/index.html
for webfluxNot sure if it is possible to have both at the same time, but if not, then maybe it would be better to have the same default (for version 2.x)?
The text was updated successfully, but these errors were encountered: