-
Introduction
-
Client Side (JavaScript)
- Use .innerText instead of .innerHTML
- Don't use eval(), new Function() or other code evaluation tools
- Canonicalize data to consumer (read: encode before use)
- Don't rely on client logic for security
- Don't rely on client business logic
- Avoid writing serialization code
- Avoid building XML or JSON dynamically
- Never transmit secrets to the client
-
Client Side (JavaScript)