Trying to set cookies with login

webdriver: Request failed with status 400 due to invalid cookie domain: invalid cookie domain: Cookie ‘domain’ mismatch
(Session info: chrome=91.0.4472.114)