You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getInferredName.js line 6 uses Function which is throwing error in CSP. Can anybody please help. I don't want to use unsafe-eval to bypass this error. getInferredName = Function('s', 'return { [s]() {} }[s].name;');
The text was updated successfully, but these errors were encountered:
You should, because that’s the only reliable way to feature-detect name inference.
I'm already using 'unsafe-eval' but our security team wants to remove this as it has risk of inline script injection. Also, is this package inter-depedent on some other package, I haven't included it in my package.json.
Please help me bypassing unsafe-eval or some other way.
getInferredName.js line 6 uses Function which is throwing error in CSP. Can anybody please help. I don't want to use unsafe-eval to bypass this error.
getInferredName = Function('s', 'return { [s]() {} }[s].name;');
The text was updated successfully, but these errors were encountered: