-
-
Notifications
You must be signed in to change notification settings - Fork 545
Description
I am using Springdoc openapi ui running behind a spring cloud gateway (route /myapi). I followed this link for that https://springdoc.org/#how-can-i-deploy-springdoc-openapi-ui-behind-a-reverse-proxy. So when I hit the url
https://myhost.com/myapi
it redirects me to a url
https://myhost.com/myapi/webjars/swagger-ui/index.html?configUrl=/swagger-config.json
Note the configUrl value in the above redirected url. Instead of configUrl=/myapi/swagger-config.json, it has a value configUrl=/swagger-config.json.
I have below code in my application.yml file
springdoc:
swagger-ui:
path: /
configUrl: /swagger-config.json
and I have set the below property as well
server.forward-headers-strategy: framework
I would have expected the redirected url to be
https://myhost.com/myapi/webjars/swagger-ui/index.html?configUrl=/myapi/swagger-config.json
and NOT
https://myhost.com/myapi/webjars/swagger-ui/index.html?configUrl=/swagger-config.json
Please advise