Question

1
Replies
170
Views
KennyY19 Member since 2018 4 posts
City and County of San Francisco
Posted: 1 year ago
Last activity: 1 year 4 months ago
Closed

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!

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn