fix(next/image): fix image-optimizer.ts headers (#82114)#2
fix(next/image): fix image-optimizer.ts headers (#82114)#2MitchLewis930 wants to merge 1 commit intopr_032_beforefrom
Conversation
The headers were forwarded to the serverless function for "internal" images but not "external" images. This changes the behavior to be the same for both such that neither receive headers.
📝 WalkthroughWalkthroughRemoved forwarding of request headers from internal image requests in the image optimizer and added an integration API route and test that verify cookies are not propagated to internal image API routes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code graph analysis (1)test/integration/image-optimizer/test/util.ts (1)
🔇 Additional comments (1)
✏️ Tip: You can disable this entire section by setting Comment |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
PR_032
Summary by CodeRabbit
Bug Fixes
Tests