Skip to content

Commit 69fdff0

Browse files
authored
Merge pull request ipfs/kubo#7890 from ipfs/fix/remove-clear-site-data
fix(gw): remove use of Clear-Site-Data in subdomain router This commit was moved from ipfs/kubo@4cdb67f
2 parents d39e618 + cd00521 commit 69fdff0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

gateway/core/corehttp/hostname.go

-9
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,6 @@ func HostnameOption() ServeOption {
9797
return
9898
}
9999
if newURL != "" {
100-
// Just to be sure single Origin can't be abused in
101-
// web browsers that ignored the redirect for some
102-
// reason, Clear-Site-Data header clears browsing
103-
// data (cookies, storage etc) associated with
104-
// hostname's root Origin
105-
// Note: we can't use "*" due to bug in Chromium:
106-
// https://bugs.chromium.org/p/chromium/issues/detail?id=898503
107-
w.Header().Set("Clear-Site-Data", "\"cookies\", \"storage\"")
108-
109100
// Set "Location" header with redirect destination.
110101
// It is ignored by curl in default mode, but will
111102
// be respected by user agents that follow

0 commit comments

Comments
 (0)