Skip to content

Comments

fix: exclude next.js rsc request headers#141

Open
hrishikesh-k wants to merge 1 commit intomainfrom
hk/exclude-next-rsc-headers
Open

fix: exclude next.js rsc request headers#141
hrishikesh-k wants to merge 1 commit intomainfrom
hk/exclude-next-rsc-headers

Conversation

@hrishikesh-k
Copy link
Contributor

https://linear.app/netlify/issue/EX-1209

When making a RSC request, Next.js appends the following headers:

RSC: 1
Next-Router-State-Tree: {"children":["posts",{}]}
Next-Router-Prefetch: 1

This PR now excludes requests with those headers as we cannot just exclude the query param. This should hopefully help with some of it, if not all.

@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for csp-nonce ready!

Name Link
🔨 Latest commit a625a9a
🔍 Latest deploy log https://app.netlify.com/projects/csp-nonce/deploys/695bdbe8681ca500085563ab
😎 Deploy Preview https://deploy-preview-141--csp-nonce.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hrishikesh-k hrishikesh-k changed the title exclude next.js rsc request headers fix: exclude next.js rsc request headers Jan 5, 2026
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