You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f71a0ca
Browse filesBrowse the repository at this point in the historyBrowse files
feat(core): Limit the body size of tunnel requests (#25515)
The tunnel route handlers (`@sentry/nextjs/tunnel` and TanStack Start's
`createSentryTunnelRoute`) now check the request size before they read
the body.
A request larger than 20 MiB gets a 413, and a request without
`Content-Length` gets a 411. So one request can no longer make the
server hold more than 20 MiB in memory. SDK envelopes are much smaller
than this limit, so normal traffic does not change.
Checking the header is enough, because the HTTP server stops reading the
body at `Content-Length`.
Stacked on #25456.
0 commit comments