Created
July 21, 2020 15:16
-
-
Save RicardoBritoBrens/19fe3e4240d5b9f771ae1c536a2e98aa to your computer and use it in GitHub Desktop.
WebApi web.config configuration when working behind a proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WebApi web.config configuration when working behind a proxy | |
## Approach 1 | |
```xml | |
<system.net> | |
<defaultProxy enabled="false"></defaultProxy> | |
</system.net> | |
``` | |
## Approach 2 | |
```xml | |
<system.net> | |
<defaultProxy enabled="true" useDefaultCredentials="true"></defaultProxy> | |
</system.net> | |
``` | |
## Approach 3 | |
```xml | |
<system.net> | |
<defaultProxy> | |
<proxy usesystemdefault="False" proxyaddress="http://10.100.10.99:8080" /> | |
</defaultProxy> | |
</system.net> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment