We migrated springfox to springdoc-openapi-ui and changed the configuration as mentioned in the documention.
Documentation - Springfox to openAPI and swagger ui is served behind a proxy. For that added ForwardedHeaderFilter in the bean configuration.
pom.xml dependency,
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.9</version>
</dependency>
But when I try to hit the swagger ui - https://somedomain/appName/swagger-ui.html, in the network tab we can see 302 as a response code and redirecting to some other page i.e index.html and throwing 404 that's page doesn't exist.
I followed this solution stackoverflow but didn't work.
Let me know what should be the cause and solution.