def METHOD_NAME(client):
    client.environ_base["HTTP_ORIGIN"] = "http://unauthorized_domain.com/"
    req = client.post(
        "http://127.0.0.1:25441/hwi/api/",
        json={
            "jsonrpc": "2.0",
            "method": "enumerate",
            "id": 1,
            "params": {},
            "forwarded_request": True,
        },
    )
    assert {
        "jsonrpc": "2.0",
        "error": {
            "code": -32001,
            "message": "Unauthorized request origin.<br>You must first whitelist this website URL in HWIBridge settings to grant it access.",
        },
        "id": None,
    } == json.loads(req.data)