'Rselenium: Access Denied You don't have permission to access "site" on this server using ChromeDriver and Chrome

I am trying to access a website using Rselenium.

library(Rselenium)
library(netstat)

rs_driver_object <- rsDriver(browser = 'chrome',
                             chromever = "101.0.4951.41",
                             verbose = F,
                             port = free_port())

remDr <- rs_driver_object$client
remDr$open()
remDr$maxWindowSize()

my_html <- "https://www.lowes.com/store/MA-N.-Dartmouth/1832"
remDr$navigate(my_html)

The website works fine on my regular chrome browser, but when opened through Rselenium I receive below error.

Access Denied You don't have permission to access "website" on this server.

The below issue is exactly what I am facing but the solution provided is in Python/Java and wondered if anyone knows the R equivalent of the solution.

Access Denied You don't have permission to access "site" on this server using ChromeDriver and Chrome through Selenium Python



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source