Network Error Logging (NEL) Builder
Build NEL and Report-To headers to send network error reports to your own endpoint with sampling fractions.
—
Getting reports on errors that never reached your server
Every monitoring tool has one blind spot: it measures what arrived. A request that failed on DNS, on a refused connection, on an invalid certificate or on a dropped network never shows up in your logs, because it never arrived. Network error logging closes that gap — the browser itself reports the failure, later, once it has a connection again.
Fill in the group, the collector URL and the sampling rates, and the page assembles the two required headers. There are two because the responsibilities are separate: one declares the reporting group and where to send, the other switches logging on and states what fraction of cases to report. Missing either is the commonest reason a configuration produces no reports at all.
The sampling rates deserve attention. The success rate is usually kept very low, because successful requests are the overwhelming majority and reporting them all would generate huge volume with no new information. The failure rate is usually kept at a hundred per cent, since failures are rare and are exactly what you want to see. Note too that the collector must accept cross-origin requests, and that it should not sit on the monitored domain — if that domain's network goes down, the report would never get out.
Frequently asked questions
Why two headers?
Does it work in every browser?
Where should the collector live?
Related Tools
Clear-Site-Data Header Builder
Build a Clear-Site-Data header (cache, cookies, storage, executionContexts) — useful on logout to wipe origin data.
Content-Security-Policy Builder
Build a Content-Security-Policy header by adding directives (default-src, script-src, img-src, frame-ancestors) with predefined sources.
JWT Builder (HS256)
Build a JWT by filling in header, payload and secret. HS256 signature computed in the browser via SubtleCrypto.
CORS Config Validator
Validate a CORS configuration (allowed origins or *), checking the format and duplicates. Useful for safely configuring APIs and web servers.
TOTP otpauth URI Builder
Builds an otpauth://totp/ URI with issuer, account, base32 secret, digits and period for QR code apps.
HSTS Header Builder
Assembles a Strict-Transport-Security header line from a max-age in seconds plus optional includeSubDomains and preload directives, ready to paste into a config.