Return HTTP 403 for invalid Origin headers (#1353)

This commit is contained in:
Peter Alexander 2025-09-22 16:44:51 +01:00 • committed by GitHub
commit 7e93a9fc19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,7 @@ async def test_streamable_http_security_invalid_origin_header(server_port: int):
json={"jsonrpc": "2.0", "method": "initialize", "id": 1, "params": {}},
headers=headers,
)
assert response.status_code == 400
assert response.status_code == 403
assert response.text == "Invalid Origin header"
finally: