## OWASP-compliant security headers for Cloudflare Pages / Netlify
## Place this file in the root of your project

/*
  # Prevent MIME type sniffing (OWASP A05)
  X-Content-Type-Options: nosniff

  # Prevent clickjacking (OWASP A05)
  X-Frame-Options: SAMEORIGIN

  # Control referrer info
  Referrer-Policy: strict-origin-when-cross-origin

  # Disable browser features not needed
  Permissions-Policy: geolocation=(), microphone=(), camera=(), payment=(), usb=()

  # Content Security Policy (OWASP A03)
  # Allows: self, inline styles/scripts (needed for single-file HTML), Anthropic API
  Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https://api.anthropic.com https://www.woorden.org; frame-ancestors 'none'; form-action 'self'; base-uri 'self'

  # Enable HSTS (HTTPS only) – enable after confirming HTTPS works
  # Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

  # Prevent caching of sensitive pages
  Cache-Control: public, max-age=3600

/wordlist.txt
  # Allow longer caching for the static word list
  Cache-Control: public, max-age=604800, immutable
