fix(api): restrict CORS to allowed origins, refuse cross-origin writes

This commit is contained in:
2026-11-23 13:38:38 +00:00
parent 549d56e0a1
commit f2049383cb
7 changed files with 251 additions and 3 deletions
+1
View File
@@ -193,6 +193,7 @@ server:
host: "0.0.0.0"
read_timeout: "5m"
write_timeout: "5m"
allowed_origins: [] # Browser origins allowed to use /api and /ws; empty = same-origin only
storage:
backend: "filesystem" # Options: filesystem, s3, smb