Commit 007a543
Add DNS rebinding protection middleware for conformance tests
Implement Host header validation middleware to prevent DNS rebinding attacks:
- Validates Host header against allowed hosts (localhost, 127.0.0.1)
- Returns 421 Misdirected Request for invalid hosts
- Configured for conformance testing environment
This addresses the dns-rebinding-protection conformance test.
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>1 parent 428103a commit 007a543
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
95 | 118 | | |
96 | 119 | | |
97 | 120 | | |
| |||
0 commit comments