Skip to content
Advertisement

HTTP not present on Schemes Swagger dropdown

I’m using springfox-swagger-ui and for whatever reason, only https scheme is available on the dropdown, even if I reach swagger ui through http. I can’t use https for the moment, so need that scheme enabled but couldn’t find anything on the documentation. Any idea why is this happening?

Advertisement

Answer

Add these following lines to your yaml page:

schemes:
  - "https"
  - "http"
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement