Search code examples
robotframeworkmicrosoft-edgee2e-testingwindows-server-2016selenium-edgedriver

Ms edge driver rejecting requests


context:
i'm using robot framework + msedgedriver for e2e testing, my environment is docker in linux vm. So i can't run msedgedriver windows container in this vm. I decided to run ms edge driver on remote windows vm.

Problem:
in my windows server 2016 i execute the following cmd : msedgedriver.exe --whitelisted-ips="".
I configured my pfsense firewall to redirect trafic to this host, when i try to connect to msedgedriver i get the following error:

Starting MSEdgeDriver 96.0.1033.0 (87d233ad01b7c17f5f53b7dac130e44d5d4b67d6) on port 9515 All remote connections are allowed. Use an allowlist instead! Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping MSEdgeDriver safe. MSEdgeDriver was started successfully. [1633362838.713][SEVERE]: Rejecting request with host: ip_address:9515 address: ip_address

and I get the following error in the client:

Host header or origin header is specified and is not whitelisted or localhost.

P.S: I've added my IP address to the whitelisted Ips using --whitelisted-ips='' argument also i tried allowed-origins=* but no luck.
Any idea about it?


Solution

  • in the end the problem has been resolved by downgrading the msedg driver version to "96.0.1032.0".
    many other version doesn't work in my case so i advise to try several version of MS Edge Driver ofc with installing the compatible version of edge browser.
    Hope that is helpful.