eager-rocket-96024
04/23/2023, 1:49 PMgreat-diamond-35515
04/23/2023, 1:52 PMeager-rocket-96024
04/23/2023, 1:58 PMeager-rocket-96024
04/23/2023, 1:59 PMgreat-diamond-35515
04/23/2023, 2:06 PMeager-rocket-96024
04/23/2023, 2:08 PMcaught (in promise) EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in
Seems you are using eval somewhere in your sdk, and i really don’t want to allow it.
It’s here: https://github.com/descope/descope-js/blob/0c3a0ebb51154fee93dc7044768c0d8befa50a71/packages/web-component/src/lib/descope-wc/DescopeWc.ts#L420great-diamond-35515
04/23/2023, 2:10 PMdefault-src none;
script-src 'unsafe-eval';
connect-src <http://static.descope.com|static.descope.com>;
style-src 'unsafe-inline' <http://static.descope.com|static.descope.com> <http://fonts.googleapis.com|fonts.googleapis.com>;
img-src <http://static.descope.com|static.descope.com>;
font-src <http://fonts.gstatic.com|fonts.gstatic.com>;
eager-rocket-96024
04/23/2023, 2:11 PMunsafe-eval
sucks, it makes the CSP kinda obsoletegreat-diamond-35515
04/23/2023, 2:18 PMorange-belgium-27264
eager-rocket-96024
04/23/2023, 2:22 PMunsafe-eval
in our production env 🫣ancient-motorcycle-2291
04/23/2023, 2:28 PMcolossal-appointment-48082
06/14/2023, 11:31 PMsalmon-night-88354
06/15/2023, 12:12 AMancient-motorcycle-2291
06/15/2023, 6:23 AMcolossal-appointment-48082
06/15/2023, 3:04 PM