RuntimeException :

11 views
Skip to first unread message

sweety shalini

unread,
Jun 30, 2022, 5:55:03 AM6/30/22
to Android Testing Support Library
Hi team ,

I am getting below error while validating the webview page .How to handle the validation for such page where CSP is enabled ?

java.lang.RuntimeException: java.lang.RuntimeException: Fatal exception checking document state: Evaluation: status: 13 value: {message=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 'nonce-llApxz0c+saQSVgmsvr0e3BHJzeTuBm27kyiufUJzlhqGuR/' 'self' https://*.paypal.com https://*.paypalobjects.com https://nexus.ensighten.com https://*.preview.dev.paypalinc.com https://*.paypal.cn https://objects.paypal.cn 'unsafe-inline'".

} hasMessage: true message: 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 'nonce-llApxz0c+saQSVgmsvr0e3BHJzeTuBm27kyiufUJzlhqGuR/' 'self' https://*.paypal.com https://*.paypalobjects.com https://nexus.ensighten.com https://*.preview.dev.paypalinc.com https://*.paypal.cn https://objects.paypal.cn 'unsafe-inline'".


Thanks 

Shalini

Reply all
Reply to author
Forward
0 new messages