Skip to content

Give Node room for the whole domain's cookies - #2

Merged
prabinbhusal merged 1 commit into
mainfrom
fix/large-cookie-headers
Aug 12, 2026
Merged

prabinbhusal merged 1 commit into
mainfrom
fix/large-cookie-headers

Conversation

@prabinbhusal

Copy link
Copy Markdown
Collaborator

Hosted under a subdomain of bctap.org, so every cookie scoped to the parent domain arrives with each request — Cognito's access, id and refresh JWTs among them. Node caps request headers at 16k and returns 431 before nginx's own limit is reached.

nginx needs matching headroom too; that lives in the infra repo as a conf.d drop-in.

Deployed under a subdomain of bctap.org, so the browser sends every cookie
scoped to the parent domain with each request — including Cognito's access,
id and refresh JWTs. Node caps request headers at 16k and answers 431 on its
own, before nginx's own limit is even reached.

Found by testing a ladder of cookie sizes rather than stopping at the first
one that passed: raising nginx alone fixed 9k and still failed at 16k.
@prabinbhusal
prabinbhusal merged commit a453b33 into main Aug 12, 2026
3 checks passed
@prabinbhusal
prabinbhusal deleted the fix/large-cookie-headers branch August 12, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant