Skip to content

Commit 70c58d2

Browse files
committed
Refactor removal of cross origin protection
1 parent b519cfc commit 70c58d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/http/handler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
223223
return
224224
}
225225

226-
// Bypass cross-origin protection: this server uses bearer tokens (not
227-
// cookies), so Sec-Fetch-Site CSRF checks are unnecessary. See PR #2359.
226+
// Remove cross-origins due to erroneous SDK mitigation. See PR #2359.
228227
crossOriginProtection := http.NewCrossOriginProtection()
229228
crossOriginProtection.AddInsecureBypassPattern("/")
230229

0 commit comments

Comments
 (0)