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
Request a URL that sets cookies and then redirects.
What did you expect to see?
Cookies set on the first request are valid after a redirect.
What did you see instead?
Cookies set on the first request are only set on the resolved IP of the URL; any further redirects lack these cookies as they use the actual URL.
Bypassing the following block of code fixes the issue:
ifip!=nil {
// Replace the host field in the URL with the IP we resolved.iftargetPort=="" {
ifstrings.Contains(ip.String(), ":") {
targetURL.Host="["+ip.String() +"]"
} else {
targetURL.Host=ip.String()
}
} else {
targetURL.Host=net.JoinHostPort(ip.String(), targetPort)
}
}
The text was updated successfully, but these errors were encountered:
Host operating system: output of
uname -a
Linux xxx 6.11.3-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 10 22:31:19 UTC 2024 x86_64 GNU/Linux
blackbox_exporter version: output of
blackbox_exporter --version
Tested with master, 0.25.0 and 0.24.0
What is the blackbox.yml module config.
What is the prometheus.yml scrape config.
N/A
What logging output did you get from adding
&debug=true
to the probe URL?What did you do that produced an error?
Request a URL that sets cookies and then redirects.
What did you expect to see?
Cookies set on the first request are valid after a redirect.
What did you see instead?
Cookies set on the first request are only set on the resolved IP of the URL; any further redirects lack these cookies as they use the actual URL.
Bypassing the following block of code fixes the issue:
The text was updated successfully, but these errors were encountered: