Drop form-action from the CSP: it was blocking every login

Added this afternoon, and it broke signing in for everybody — the phone first, then the desktop the moment that session was signed out. Logging in is a form that submits to /login, which answers 302 to the authorize URL on whichever PDS hosts the handle. Chrome and WebKit enforce form-action against the *redirect target* of a submission, not just its immediate action, so 'self' cancelled the navigation to the PDS. Silently: no error, no request, no callback ever reaching the server — the browser just stayed put, which reads as 'the login page bounced me back'. Firefox does not do this, so it looks browser-specific and is not. It cannot be fixed by listing hosts, because in atproto the PDS is wherever that person keeps their repo. form-action does not fall back to default-src, so leaving it out restores the default rather than opening a hole in the rest of the policy. The reader keeps form-action 'none' — it has no forms — with a note saying why it must not be copied to the chat side. Verified: 24 login attempts in the log, all 302 to a PDS, and zero /oauth/callback hits ever on this machine. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>


Author Johan Co-author Claude Opus 5 Date Commit Parent bd4f4123
+27 -3
3 changed files
+27 -3
3 changed files