Skip to content

Commit

Permalink
Do not compare referrer and request path for checking if page is framed
Browse files Browse the repository at this point in the history
  • Loading branch information
ahzaz committed Feb 12, 2021
1 parent 2fe1f2c commit 923cba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/banner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func isAlreadyFramed(r *http.Request) bool {
}
if referer := r.Header.Get(refererHeader); referer != "" {
refererURL, err := url.Parse(referer)
if err == nil && refererURL.Host == r.Host && refererURL.Path == r.URL.Path {
if err == nil && refererURL.Host == r.Host {
return true
}
}
Expand Down

0 comments on commit 923cba7

Please sign in to comment.