Route main SSE traffic to backend
This commit is contained in:
@@ -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\"") &&
|
||||
|
||||
Reference in New Issue
Block a user