Forum Discussion

RahulKakarla's avatar
RahulKakarla
New Contributor
6 years ago

Restricting Access To Production

I wan to restrict my swagger access, i dont want it to be used in production.
I tried 

@EnableSwagger2
@Profile({"dev","tst","qa"})

this is not working  

  • Based on the question, this is related to Springfox. Springfox is not one of our libraries and we're not familiar with it enough to provide support for it. Please file a ticket with the project.

    • RahulKakarla's avatar
      RahulKakarla
      New Contributor

      Is there any other way in swagger to restrict the URL production access