http
http copied to clipboard
Clear sensitive headers when redirecting to cross-site
Sensitive headers (Authorization and Cookie) are sent to cross-site when redirecting.
For example, an original target URL is http://example.com and redirect to http://example.jp (cross-site). The sample code is the following.
require 'http'
HTTP.headers({Authorization: "Basic xxx", Cookie: "key=value"})
.follow()
.get("http://example.com")
This PR might be related to #264.