I managed to solve it by adding an option:
options.addArguments("--remote-allow-origins=*");
There is a discussion about it in google group
https://groups.google.com/g/chromedriver-users/c/xL5-13_qGaA
I managed to solve it by adding an option:
options.addArguments("--remote-allow-origins=*");
There is a discussion about it in google group
https://groups.google.com/g/chromedriver-users/c/xL5-13_qGaA