Execute JavaScript while the site under automation has Content Security Policy enable
Hi All, we are on Pega Robotics version 8.0.2025.0. In our automation, we have a block and need to call the ExecuteScript method to excute a javascript. However, the site that we are automating has "Content Security Policy" enable.
Our automation fails with the following error relates to Content Security Policy directive. Anyone has any suggestion on how we should get around this? We are running with Chrome browser.
"Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive:"
Thank you!