You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| allowed_hosts | `Sequence[str]| None` = None | Sequence of allowed hosts. If configured, requests that send a different host in the `Host` header or `X-Forwarded-Host` header are replied with Bad Request.|
| allowed_hosts | `Sequence[str]| None` = None | Sequence of allowed hosts. If configured, requests that send a different host in the `Host` header or `X-Forwarded-Host` header are replied with Bad Request. |
104
113
| known_proxies | Sequence[IPAddress]| None = None | Sequence of allowed proxies IP addresses. If configured, requests that send different proxies IPs in the request scope or `X-Forwarded-For` header are replied with Bad Request. |
105
114
| known_networks | Sequence[IPNetwork]| None = None | Sequence of allowed proxies networks. If configured, requests that send a foreign proxy IP in the request scope or `X-Forwarded-For` header are replied with Bad Request. |
106
-
| forward_limit | int = 1 | Maximum number of allowed forwards, by default 1. |
115
+
| forward_limit | int = 1 | Maximum number of allowed forwards, by default 1. |
107
116
108
117
When `known_proxies` is not provided, it is set by default to handle `localhost`:
| allowed_hosts | Sequence[str]| None = None | Sequence of allowed hosts. If configured, requests that send a different host in the `Host` header or `Forwarded` header are replied with Bad Request. |
140
149
| known_proxies | Sequence[IPAddress]| None = None | Sequence of allowed proxies IP addresses. If configured, requests that send different proxies IPs in the request scope or `Forwarded` header are replied with Bad Request. |
141
150
| known_networks | Sequence[IPNetwork]| None = None | Sequence of allowed proxies networks. If configured, requests that send a foreign proxy IP in the request scope or `Forwarded` header are replied with Bad Request. |
142
-
| forward_limit | int = 1 | Maximum number of allowed forwards, by default 1. |
151
+
| forward_limit | int = 1 | Maximum number of allowed forwards, by default 1. |
143
152
144
153
When `known_proxies` is not provided, it is set by default to handle `localhost`:
0 commit comments