Skip to content

fix(vercel): use SameSite=Lax for skew protection cookie - #4789

Merged
pi0 merged 1 commit into
v2from
backport/vercel-skew-samesite-lax
Oct 15, 2026
Merged

pi0 merged 1 commit into
v2from
backport/vercel-skew-samesite-lax

Conversation

@pi0x

@pi0x pi0x commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Backports #4422 to v2 (fixes #4414 for v2). The Vercel skew protection __vdpl cookie was set with SameSite=Strict, so when a user arrived from another site the document was served from the new deployment but asset requests (like /_nuxt/*) carried no cookie and could 404 against the wrong deployment. It now uses SameSite=Lax and stays Secure and HttpOnly.

The only difference from main is that v2 reads the deployment id from process.env.VERCEL_DEPLOYMENT_ID. I also added a preset test that checks the generated config.json route. Main has no test for this.

🤖 Generated with AI assistant

@pi0x
pi0x requested a review from pi0 as a code owner October 15, 2026 08:10
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nitro.build Ready Ready Preview Oct 15, 2026 8:10am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0bab1b66-baa2-41eb-aa54-2b29d7aa5441

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Oct 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nitropack@4789

commit: 8220609

@pi0
pi0 merged commit 08483ab into v2 Oct 15, 2026
12 checks passed
@pi0
pi0 deleted the backport/vercel-skew-samesite-lax branch October 15, 2026 08:37

This branch was successfully deployed

1 active deployment
Preview — 82206094 Deployed Oct 15, 2026 by vercel[bot]
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.

2 participants