From 491f847bbc286588175695ea43fa4e13cd14a437 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" <128333288+ltdrdata@users.noreply.github.com> Date: Wed, 22 Apr 2026 05:04:07 +0900 Subject: [PATCH] fix(security): harden CSRF with Content-Type gate and OpenAPI sync (#2819) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Defense-in-depth over GET→POST alone: reject the three CORS-safelisted simple-form Content-Types (x-www-form-urlencoded, multipart/form-data, text/plain) on 5 no-body POST handlers (snapshot/save, manager/queue/{reset,start,update_comfyui}, manager/reboot) to block