diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index d9f4ba5f..489076ff 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -354,8 +354,9 @@ class IMMClient(object): 'password': self.password, 'SessionTimeout': 60}) headers = {'Connection': 'keep-alive', - 'Referer': 'https://{0}/designs/imm/index.php'.format( - self.imm), + 'Origin': 'https://1.2.3.4/', + 'Host': '1.2.3.4', + 'Referer': 'https://1.2.3.4/designs/imm/index.php', 'Content-Type': 'application/x-www-form-urlencoded'} wc.request('POST', '/data/login', adata, headers) rsp = wc.getresponse()