Skip to content

Commit

Permalink
Merge pull request ipfs/kubo#7890 from ipfs/fix/remove-clear-site-data
Browse files Browse the repository at this point in the history
fix(gw): remove use of Clear-Site-Data in subdomain router

This commit was moved from ipfs/kubo@4cdb67f
  • Loading branch information
Stebalien authored Mar 31, 2021
2 parents d39e618 + cd00521 commit 69fdff0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gateway/core/corehttp/hostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,6 @@ func HostnameOption() ServeOption {
return
}
if newURL != "" {
// Just to be sure single Origin can't be abused in
// web browsers that ignored the redirect for some
// reason, Clear-Site-Data header clears browsing
// data (cookies, storage etc) associated with
// hostname's root Origin
// Note: we can't use "*" due to bug in Chromium:
// https://bugs.chromium.org/p/chromium/issues/detail?id=898503
w.Header().Set("Clear-Site-Data", "\"cookies\", \"storage\"")

// Set "Location" header with redirect destination.
// It is ignored by curl in default mode, but will
// be respected by user agents that follow
Expand Down

0 comments on commit 69fdff0

Please sign in to comment.