-
-
Notifications
You must be signed in to change notification settings - Fork 553
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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:
- the
configUrlpath returned in swagger-initializer.js - the openapi definition
url(and alsoconfigUrl) path returned at config URL location oauth2RedirectUrlreturned at config URL location
To 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- red
Expected behavior
- It should be possible to host webflux version of springdoc behind the proxy:
X-Forwarded-Prefixshould be supported- or the tests should be updated to show how to configure sprindoc + webflux behind the proxy
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.htmlfor webmvc/webjars/swagger-ui/index.htmlfor webflux
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)?
starrybleu
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request