"""Security helpers for CSRF protection and Content-Type gating. reject_simple_form_post() is applied ONLY to POST handlers that do not consume a request body (e.g., snapshot/save, queue/reset, queue/start, reboot). These are vulnerable to cross-origin