Reject invalid router state headers with 400
Stale clients can send router state in an older schema after a deployment. Validate the header before rendering so invalid client input returns 400 without being reported as a server error. Add regression coverage for Node and Edge runtimes, valid requests, document requests, and static pages.
Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment