Skip to content

Instantly share code, notes, and snippets.

@lmas
Created July 13, 2022 16:54
Show Gist options
  • Save lmas/7e9ede6b29798a5134d75d4842f5ef6b to your computer and use it in GitHub Desktop.
Save lmas/7e9ede6b29798a5134d75d4842f5ef6b to your computer and use it in GitHub Desktop.
HTTP security headers

List of HTTP headers for increased security.

  • /* Strict-Transport-Security max-age=31536060; includeSubDomains; preload
  • /* X-Frame-Options DENY
  • /* X-XSS-Protection 1; mode=block
  • /* X-Content-Type-Options nosniff
  • /* Referrer-Policy strict-origin-when-cross-origin
  • /* Cache-Control public, max-age=604860
  • /* Content-Security-Policy default-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; connect-src https://stats.larus.se/

TODO: Lookup each header and provide more info and references.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment