Patrick Müller 56074d4441 Allow dev CORS from LAN IPs; add submission deletion
The dev-only CORS bypass in app.ts only ever matched
http://localhost:<port>, never the LAN IP a phone actually connects
through over WiFi - so testing the feedback form from a real device
against a local dev API had its submissions silently rejected by CORS.
Extended the bypass to also allow private LAN ranges (192.168.x.x,
10.x.x.x, 172.16-31.x.x), dev-only as before.

Also adds DELETE /feedback/admin/submissions/:submissionId (cascades
to the submission's answers, guest book entry, and newsletter signup
in explicit dependency order, single-path by submission_id) so an
admin can remove an individual abusive/inappropriate entry - decided
in IMPLEMENTATION_PLAN.md §7 item 8. getGuestBookEntries now also
returns submissionId so the admin UI can target the delete call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-06 22:55:32 +02:00
2022-12-24 14:32:13 +01:00
2026-08-05 23:37:17 +02:00
2022-12-24 14:32:13 +01:00
2022-12-24 14:32:13 +01:00
2022-12-24 14:32:13 +01:00
2022-12-24 14:32:13 +01:00
S
Description
No description provided
662 KiB
Languages
TypeScript 99.7%
JavaScript 0.2%
HTML 0.1%