v0.6.353: bind single sign-on to the browser, refuse cross-origin requests (#999) #1000
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-999"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #999 (login CSRF).
HttpOnly,Lax, 10 min;__Host-/Secureon https). A return without the cookie is refused. Two tabs work.http.CrossOriginProtectionaround the main handler for unsafe methods. This covers the password sign-in CSRF (a cross-sitetext/plainform produced valid JSON) and logout CSRF. Header-less clients are unaffected.moved=1marker breaks the loop behind Host-rewriting proxies, with an hourly WARN. A foreign Host is cut to 256 bytes for the limiter and the log.Reviews:
.superpowers/sdd/2026-10-25-999/review.md(initial review plus re-review; S1 and S2 fixed, N7 fixed, nits documented).