Hi!
I recently updated from V6.3.3 to V7.0.10. After the update one of my main macros is facing the “Refused to evaluate a string as JavaScript because ‘unsafe-eval’” error.
My original macro is much longer but this is one of the many parts that face this error.
{
"Command": "open",
"Target": "https://login.yahoo.com/account/create?specId=usernameReg",
"Value": "",
"Description": ""
},
{
"Command": "waitForElementVisible",
"Target": "id=usernamereg-firstName",
"Value": "",
"Description": ""
},
{
"Command": "repeatIf",
"Target": "${!statusOK} == false",
"Value": "",
"Description": ""
}
This is the error in the log after running the macro
Playing macro Test
[info]
Executing: | do | | |
[info]
Executing: | open | https://login.yahoo.com/account/create?specId=usernameReg | |
[error]
Line 2: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'unsafe-inline' 'self' https://s.yimg.com https://s1.yimg.com https://query.yahoo.com https://*.query.yahoo.com https://y.analytics.yahoo.com https://jsapi.login.yahoo.com https://fc.yahoo.com https://e2e.fc.yahoo.com https://pr.comet.yahoo.com 'nonce-kvl8Nwpy1YYBNHpBszX/piAlI9LFzY+yp8pAtFS3cnsLTD9u'".
[info]
Macro failed (Runtime 5.28s)
This started happening after updating to the newer version. I have another machine that’s running V6.3.3 and the whole macro is working fine there. I don’t know if it works in the other versions after 6.3.3 because I haven’t tried it. I’m also running the latest version of chrome if that matters.