Refused to evaluate a string as JavaScript

  • 1
  • Problem
  • Updated 3 years ago
  • Not a Problem
Hi

Was checking console for something and found 7 errors with following description:
[Report Only] 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 https: 'unsafe-inline'".z @ SfdcCore.js:258(anonymous function) @ SfdcCore.js:262(anonymous function) @ SfdcCore.js:262b.provide @ SfdcCore.js:220(anonymous function) @ SfdcCore.js:297(anonymous function) @ SfdcCore.js:304
SfdcCore.js:258[Report Only] 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 https: 'unsafe-inline'".
z @ SfdcCore.js:258(anonymous function) @ SfdcCore.js:262(anonymous function) @ SfdcCore.js:262b.provide @ SfdcCore.js:220(anonymous function) @ SfdcCore.js:303(anonymous function) @ SfdcCore.js:304

Has anyone encountered such issue?
Photo of Sunny Sharma

Sunny Sharma

  • 678 Points 500 badge 2x thumb

Posted 3 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Sunny,

Can you give us a little more information about your page? None of those errors point to anything particular in Skuid. Maybe paste your page XML here?
Photo of Sunny Sharma

Sunny Sharma

  • 678 Points 500 badge 2x thumb
Hi,

Sorry for posting this thread too early. Took another look. looks like this is occurring only in sandbox and this error is from SfdcCore.js and not from skuid js.

Apologies again for posting this issue here.

Thanks,
Sunny Sharma
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
No worries! Especially since we deal so much in JavaScript with Skuid, conflicts occur from time to time. I wasn't trying to say that it wasn't a problem in Skuid, just that I wasn't able to make a determination from that error message alone. Hope you get it sorted!