Mark IO proxy endpoint as CSRF-exempt (read-only, no state mutation)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 09:50:23 +00:00
parent ff2ef29d8a
commit 0d6b959045

View File

@@ -563,6 +563,9 @@ def mount_io_endpoint(app: Any, service_name: str) -> None:
if isinstance(_val, _Comp) and _val.io_refs:
_ALLOWED_IO.update(_val.io_refs)
from shared.browser.app.csrf import csrf_exempt
@csrf_exempt
async def io_proxy(name: str) -> Any:
if name not in _ALLOWED_IO:
quart_abort(403)