0

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.

enter image description here

I followed this solution stackoverflow but didn't work.

Let me know what should be the cause and solution.

Anil Nivargi
  • 1,473
  • 3
  • 27
  • 34

0 Answers0