Notifio’s Contact Form Uses Four Browser Checks and Seven Server Gates
Notifio’s contact form applies four HTML-based checks in the browser but seven validation gates on the server, creating mismatches over email format, whitespace-only fields and message length.
The browser-side ContactForm.tsx relies on three required attributes and one type="email" check, then sends the values directly to /api/contact without trimming, length checks or additional email validation.
The server applies seven gates in order: per-IP rate limiting, JSON parsing, trimming and lowercasing, required-field checks, an email regular expression, a 5,000-character message limit and delivery through Resend. This creates several mismatches between what the form accepts and what the API rejects.
For example, the browser accepts a@b while the server rejects it because its regular expression requires a dot in the domain. A name containing only a space also passes the browser’s required check but fails after server-side trimming. The message field has a 5,000-character server limit, but the HTML form has no maxlength attribute, counter or warning.
The form also depends entirely on JavaScript and fetch-based submission. With JavaScript disabled, the styled form appears enabled but has no useful native submission fallback; the site’s other static pages do not share that limitation.