
x32x01
ADMINISTRATOR
- by x32x01 ||
HTML5 Security Cheat-Sheet
HTML5 Security Cheat-Sheet provides essential guidelines for securing web applications using HTML5. Key security practices include:- Content Security Policy (CSP): Protects against Cross-Site Scripting (XSS) by controlling which resources are allowed to load.
- Cross-Origin Resource Sharing (CORS): Manages resource sharing between domains to prevent unauthorized access.
- Secure Input Handling: Always validate and sanitize user inputs to prevent injection attacks.
- Same-Origin Policy (SOP): Ensures that scripts are only allowed to interact with content from the same origin.
- Web Storage & Cookies: Securely store sensitive data using encryption and ensure cookies are marked as HttpOnly and Secure.
- HTTPS: Enforce the use of secure connections to protect data in transit.
- Subresource Integrity (SRI): Ensures that external resources haven't been tampered with.
Last edited: