Author

Joshua Martinelle

Security engineer at Tenable

Joshua Martinelle is a security engineer at Tenable and a web security researcher. Since 2020 he has disclosed more than 60 CVEs, 15 of them rated critical, in software such as Gitea, Langflow, Flowise, Nginx UI and dozens of WordPress plugins.

Many of those findings are cross-site scripting, SQL injection and broken authentication: the bugs that security headers like Content-Security-Policy are meant to contain. He created WebSec0 to make configuration checks clearer, and writes and tests these guides.

Portrait of Joshua Martinelle

01 / Track record

Findings you can check.

Every figure links to its public source.

02 / Guides

Written and tested by Joshua.

  1. Certificate chainAn incomplete certificate chain means the server omits its intermediate certificate. How to build fullchain.pem, configure four servers and check it.
  2. Cipher suitesWhich TLS cipher suites to enable in 2026: ECDHE with AES-GCM or ChaCha20 on TLS 1.2, TLS 1.3 as is. What WebSec0 flags, and tested configs for four servers.
  3. TLS 1.0 and 1.1 · NginxDisable TLS 1.0 and 1.1 on Nginx with one ssl_protocols line in the http block, why a server block is not enough, and how to test it with openssl. Tested.
  4. COOP, COEP and CORPWhat COOP, COEP and CORP do, what each one breaks, how WebSec0 adds up to 10 points for them, and tested configurations for Nginx, Apache, Caddy and Traefik.
  5. Security headers · CaddyAll six security headers on Caddy in one tested snippet: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, proxies and error pages included.
  6. ServerWhy WebSec0 takes 5 points for a version in the Server header, and tested fixes for Nginx, Apache, Caddy, Traefik, PHP and Express, proxied backends included.
  7. Access-Control-Allow-OriginWhen Access-Control-Allow-Origin: * is safe, why WebSec0 takes 10 points for it, and tested allowlists for Express, Nginx, Apache, Caddy and Traefik.
  8. Set-CookieWhat Secure, HttpOnly and SameSite do on a Set-Cookie header, how WebSec0 scores cookies, and tested fixes in the app or on Nginx, Apache and Caddy.
  9. X-Content-Type-Options · ApacheSet X-Content-Type-Options: nosniff on Apache with Header always set, keep it on errors and redirects, and fix files Apache sends without a Content-Type. Tested configs.
  10. X-Content-Type-Options · CaddySet X-Content-Type-Options: nosniff on Caddy with the header directive, check the MIME types file_server sends and type files without an extension. Tested configs.
  11. X-Content-Type-Options · TraefikSet X-Content-Type-Options: nosniff on Traefik with the contentTypeNosniff option, in labels or a file, and fix the Content-Type your backend sends. Tested configs.
  12. Permissions-Policy · ApacheSet Permissions-Policy on Apache with Header always set, quote origins correctly, enable a feature on one path and stop a proxied app's policy winning. Tested configs.
  13. Permissions-Policy · CaddySet Permissions-Policy on Caddy with the header directive, quote origins with backticks, enable a feature on one path and stop a proxied app's policy winning. Tested.
  14. Permissions-Policy · TraefikSet Permissions-Policy on Traefik with the permissionsPolicy option, quote origins in YAML and labels, drop an old Feature-Policy, enable a feature per path. Tested.
  15. Referrer-Policy · ApacheSet Referrer-Policy on Apache with Header always set, keep it on errors and redirects, use no-referrer on sensitive paths and stop a proxied app's value winning. Tested.
  16. Referrer-Policy · CaddySet Referrer-Policy on Caddy with the header directive, use no-referrer on sensitive paths with route, and stop a proxied app's weaker value from winning. Tested configs.
  17. Referrer-Policy · TraefikSet Referrer-Policy on Traefik with the referrerPolicy option of the headers middleware, in labels or a file, and use no-referrer on sensitive paths. Tested configs.
  18. X-Frame-Options · ApacheSet X-Frame-Options on Apache with Header always set, pair it with CSP frame-ancestors, keep it on errors and redirects and avoid duplicate headers. Tested configs.
  19. X-Frame-Options · CaddySet X-Frame-Options on Caddy with the header directive, pair it with CSP frame-ancestors, drop the application's copy behind reverse_proxy and allow one path. Tested.
  20. X-Frame-Options · TraefikSet X-Frame-Options on Traefik with frameDeny or customFrameOptionsValue, pair it with CSP frame-ancestors and let a partner embed one path. Tested configs.
  21. Content-Security-Policy · CaddyAdd a Content-Security-Policy header in Caddy, reuse it with a snippet, override it on one path and avoid a second policy behind reverse_proxy. Tested Caddyfiles.
  22. Security headers · ApacheAll six security headers on Apache in one tested file: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, error pages and proxies included.
  23. Security headers · TraefikAll six security headers on Traefik in one tested headers middleware: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, labels or file.
  24. Strict-Transport-Security · CaddyEnable HSTS on Caddy: add Strict-Transport-Security to the site block, keep it off plain HTTP, cover redirects and avoid a second header behind reverse_proxy. Tested.
  25. Content-Security-Policy · TraefikAdd a Content-Security-Policy header in Traefik with the headers middleware, in Docker labels or a dynamic file, test it in report-only mode and override it per path.
  26. Strict-Transport-Security · ApacheEnable HSTS on Apache: send Strict-Transport-Security from the HTTPS virtual host only, with always, on every redirect and error page, without duplicates. Tested configs.
  27. Strict-Transport-Security · TraefikEnable HSTS on Traefik with the headers middleware: stsSeconds and stsIncludeSubdomains, the HTTPS redirect, middleware order, TLS offloading and a working rollback.
  28. Content-Security-Policy · ApacheAdd a Content-Security-Policy header in Apache with mod_headers, keep it on error pages and redirects, test it in report-only mode and avoid duplicates. Tested configs.
  29. Security headers · NginxAll six security headers on Nginx in one tested snippet: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, error pages included.
  30. Permissions-Policy · NginxSet Permissions-Policy on Nginx with add_header and always, quote origins correctly, keep it on every location and enable a feature on one path only. Tested configs.
  31. Permissions-PolicyPermissions-Policy switches off browser features such as camera, microphone and geolocation for your pages and iframes. Learn the syntax and which features to disable.
  32. X-Content-Type-Options · NginxSet X-Content-Type-Options: nosniff on Nginx with add_header and always, keep it on static files, and fix the MIME types it breaks, such as .mjs. Tested configs.
  33. X-Content-Type-OptionsX-Content-Type-Options: nosniff stops browsers from guessing content types, so files cannot run as scripts or styles. What it blocks and the MIME types to fix first.
  34. Referrer-Policy · NginxSet Referrer-Policy on Nginx with add_header and always, keep it on every location, use a stricter policy on sensitive paths and avoid duplicate headers. Tested configs.
  35. Referrer-PolicyReferrer-Policy decides how much of your URLs the browser sends to other sites in the Referer header. Compare the eight values and pick a safe one.
  36. Content-Security-PolicyContent-Security-Policy tells the browser which scripts, styles and frames a page may load. Learn the key directives, strict nonce policies and a safe rollout.
  37. X-Frame-Options · NginxSet X-Frame-Options on Nginx with add_header and always, pair it with CSP frame-ancestors, keep it on every location and avoid duplicate headers. Tested configs.
  38. X-Frame-OptionsX-Frame-Options stops other sites from framing your pages, the main defence against clickjacking. DENY vs SAMEORIGIN, and why CSP frame-ancestors replaces it.
  39. Strict-Transport-Security · NginxEnable HSTS on Nginx: send Strict-Transport-Security from the HTTPS server only, with always, on every location and redirect, without duplicates. Tested configs.
  40. Strict-Transport-SecurityStrict-Transport-Security tells browsers to use only HTTPS for your domain. Learn max-age, includeSubDomains and preload, and how to roll HSTS out safely.
  41. Content-Security-Policy · NginxAdd a Content-Security-Policy header in Nginx, test it in report-only mode, keep it on every location and error page, and add nonces or hashes. Tested configs.