Documentation
¶
Overview ¶
Package crosshost names the request headers that must not survive a redirect to a host other than the one they were sent to.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SensitiveHeaders = []string{ fasthttp.HeaderAuthorization, fasthttp.HeaderProxyAuthorization, fasthttp.HeaderProxyAuthenticate, fasthttp.HeaderWWWAuthenticate, fasthttp.HeaderCookie, "Cookie2", }
SensitiveHeaders lists the headers carrying credentials scoped to one origin. A redirect off it must drop every one, or the client's secret reaches a host it never addressed — and the responding server chooses where that goes.
net/http's set, which fasthttp also implements. Shared because the client's redirect loop and the proxy's had already drifted: the proxy was missing Cookie2 and both Authenticate headers.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.