Secure Coding Practices
Defensive coding techniques that protect data and behaviour from accidental or malicious tampering.
Content tagged secure-coding
Snippet:Deep Freeze Objects in JavaScript
Recursively lock every object level for true immutabilityLock objects and their children immutably — prevent accidental mutations and enforce deep immutability in strict mode.Post:Trusted Types and
eval: The Dynamic Code Brand Checks ProposalGuard eval and new Function with Trusted TypesWhy eval and new Function are risky, how Trusted Types and CSP contain them, and what the Stage 3 Dynamic Code Brand Checks proposal changes. Not in ES2027 yet.