Skip to content

Revisions

  • CSRF: replace hand-rolled Sec-Fetch-Site guard with http.CrossOriginProtection Go 1.25 stdlib ships it with Origin fallback, AddTrustedOrigin, AddInsecureBypassPattern, SetDenyHandler, and per-request Check.

    @acoshift acoshift committed Jul 19, 2026
  • Modernize CSRF guidance: explicit SameSite + Sec-Fetch-Site guard Explicit SameSite=Lax/Strict + no mutations on GET stops classic cross-site CSRF; add a Sec-Fetch-Site middleware example for the same-site-but-cross-origin gap; demote tokens to if-you-use-them-anyway.

    @acoshift acoshift committed Jul 19, 2026
  • Update htmx guide for SPA integration (hime#123) Rewrite HTMX page: fragment rendering (View "page#frag", ViewPartial), pure predicates, HTMXAwareRedirect, URL/history/trigger helpers, OOB pattern, form validation loop, caching (NoCache/VaryHTMX), security notes. Add fragment/cache/redirect cross-references to Responses and Template pages.

    @acoshift acoshift committed Jul 19, 2026
  • Cover all current features; fix typos and grammar across pages

    @acoshift acoshift committed Jun 9, 2026