mcp: remove default cross origin protection (#906)

Fixes #902
This commit is contained in:
Maciej Kisiel 2026-04-24 11:35:22 +02:00 • committed by GitHub
commit 41e1f941bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2587,10 +2587,10 @@ func TestStreamableOriginProtection(t *testing.T) {
wantStatusCode int
}{
{
name: "default protection with Origin header",
name: "no protection with Origin header",
protection: nil,
requestOrigin: "https://example.com",
wantStatusCode: http.StatusForbidden,
wantStatusCode: http.StatusOK,
},
{
name: "custom protection with trusted origin and same Origin",