I am working on a NodeJS Project and I'm using CSP
(Content Security Policy).
I'm using a external plugin FullCalendar
which is being blocked by csp giving the following error:
Error: call to Function() blocked by CSP
I use script-src 'self' 'unsafe-eval';
to override it but did not work in firefox. In other browser it is working fine.
I got stuck on this issue by 4h.
It would be helpful to get the solution.
I am using the following format in CSP restrictions.
X-Content-Security-Policy: default-src *; script-src 'self' 'unsafe-eval'; object-src 'none'; style-src 'self' 'unsafe-inline img-src *;options eval-script;
X-WebKit-CSP: default-src *; script-src 'self' 'unsafe-eval'; object-src 'none'; style-src 'self' 'unsafe-inline img-src *;
Content-Security-Policy: default-src *; script-src 'self' 'unsafe-eval'; object-src 'none'; style-src 'self' 'unsafe-inline img-src *;
eval
function in CSP? – softvareval
function.@VarunMalhotra – AMTeval
rather than usingeval
directly in CSP which is depreciated or violatesCSP
rules. – softvar