-
- Downloads
Allow restricting redirect destinations (#97)
The `/redirect-to` endpoint currently acts as an open redirect, which is bad for any go-httpbin instance exposed to the public internet. This allows configuring an allowlist of domains to which traffic can be redirected.
Showing
- README.md 94 additions, 53 deletionsREADME.md
- cmd/go-httpbin/main.go 27 additions, 11 deletionscmd/go-httpbin/main.go
- httpbin/handlers.go 17 additions, 4 deletionshttpbin/handlers.go
- httpbin/handlers_test.go 31 additions, 3 deletionshttpbin/handlers_test.go
- httpbin/httpbin.go 15 additions, 0 deletionshttpbin/httpbin.go
Loading
Please register or sign in to comment