How to restrict access to swagger API?
Follow the below steps to block Swagger access:
- Go to the IIS Manager of your Orchestrator machine.
- Click on the local machine name (Orchestrator in the example below):
- Navigate to URL Rewrite and double-click URL Rewrite.
- Click Add Rule on the right-hand side:
- Double-click Request blocking.
- Configure the details in the Add request blocking rule page as shown below:
- Click OK.
- Restart the server.
- Now the Swagger page is blocked.