Calculated Fields Form with CSP
-
Hello,
I have to add Content-Security-Policy (CSP) header in a page where Calculated Fields Form plugin is instantiated. The form is not working. In console, I received the following: “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”. Would be very simply just to add ‘unsafe-eval’ in the script-src key, but this would be like script-src wouldn’t exist, will not protect anything. I have added a nonce value to the script tag, which usually solve this issue in other contexts. In my situation, does not. Is there someone that had the same issue? Unfortunately, the presence of the CSP header should be a standard from now.
Thanks,
Ciprian
The page I need help with: [log in to see the link]
The topic ‘Calculated Fields Form with CSP’ is closed to new replies.