Route main SSE traffic to backend

This commit is contained in:
2569718930@qq.com
2026-06-10 12:31:14 +08:00
parent afdfe03174
commit 98026e510a
4 changed files with 75 additions and 3 deletions
@@ -57,6 +57,12 @@ export function runTests() {
modalSource.includes("type=\"textarea\"") === false,
"feedback modal must submit to the feedback API, lock contact to the login email when available, notify the dashboard after success, and attach client/session diagnostics without using invalid textarea input types",
);
assert(
modalSource.includes("formatFeedbackSubmitError") &&
modalSource.includes("looksLikeHtmlDocument") &&
!modalSource.includes("throw new Error(detail || `HTTP ${res.status}`)"),
"feedback modal must not expose raw Cloudflare/HTML error pages to users",
);
assert(
feedbackRouteSource.includes("export async function GET") &&
feedbackRouteSource.includes("method: \"GET\"") &&