KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Mozilla's Content Security Policy disallows the use of javascript eval function as well as inline scripts. They claim that all instances of eval can be replaced by another (hopefully safer) function. I agree in most scenarios, Javascript eval can be replaced, but I'm not sure whether the replacement is possible for every case. My question is twofold: Is there a generic way to replace every javascript eval function? (doesn't have to be safe) Is there a case where the Javascript eval cannot be replaced?
Tags (comma-separated)
Save Edits
Cancel