awesome-frontend-security icon indicating copy to clipboard operation
awesome-frontend-security copied to clipboard

☔️A curated list of tools, articles & resources to help take your frontend security to the next level. Feel free to contribute!

awesome-frontend-security

Awesome

Contents

  • Code
    • Linters
    • Sanitizers
    • Serializers
  • Dependencies
  • Headers
    • Content-Security-Policy
    • X-XSS-Protection
    • X-Frame-Options
  • Articles
  • Other lists

Code

Linters

Sanitizers

Serializers

  • serialize-javascript - Serialize JavaScript safely - HTML characters and JS line terminators are escaped automatically.

Dependencies

Headers

Content-Security-Policy

📚Learn

  • MDN - An article on MDN.
  • CSP Is Dead, Long Live CSP! - On the Insecurity of Whitelists and the Future of Content Security Policy.
  • Strict CSP - To get real value out of CSP, your policy must prevent the execution of untrusted scripts.

🧪Create

🔍Validate

  • CSP Evaluator - Paste your policy and check if its safe and strong enough.
  • CSP Header Inspector - Validate your policies as served from the given URL.
  • CSP Tester - Browser extension for testing Content Security Policy (CSP).

🤔Analyse

  • CSP WTF? - Explanations for strange CSP Report notifications.

X-XSS-Protection

📚Learn

  • MDN - An article on MDN.

X-Frame-Options

📚Learn

  • MDN - An article on MDN.

Articles

Other lists

  • CSP useful - A collection of parsers, examples and tips for Content Security Policy.
  • Awesome Web Security - A curated list of Web Security materials and resources.

License

CC0