MCPcopy Index your code
hub / github.com/python-websockets/websockets / InvalidOrigin

Class InvalidOrigin

src/websockets/exceptions.py:300–307  ·  view source on GitHub ↗

Raised when the Origin header in a request isn't allowed.

Source from the content-addressed store, hash-verified

298
299
300class InvalidOrigin(InvalidHeader):
301 """
302 Raised when the Origin header in a request isn't allowed.
303
304 """
305
306 def __init__(self, origin: str | None) -> None:
307 super().__init__("Origin", origin)
308
309
310class InvalidUpgrade(InvalidHeader):

Callers 3

process_originMethod · 0.85
process_originMethod · 0.85
test_strMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_strMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…