How to secure generated API documentation using swagger swashbuckle
问题 I have implemented API documentation using swagger swashbukle. Now I want to publish generated documentation as a help file in my website. How to secure this link and publish? 回答1: I don't think there's a way to secure the swagger swashbuckle endpoint up until now. You can have tips and more into this from their github issue here 回答2: This solution will only work if you have implemented authentication in your solution. Create new folder swagger in solution Add new Web.config file. write