framework: fix vary header - #1209
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. WalkthroughThe base Koa middleware now adds Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The Vary-header changes should merge existing response variation values without introducing a known runtime or compatibility risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
framework/framework/base.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. framework/framework/server.tsESLint skipped: the matched ESLint configuration already failed (missing-dependency). 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. Comment |
| if (c.request.headers.origin) { | ||
| c.set('Access-Control-Allow-Origin', c.request.headers.origin); | ||
| c.set('Vary', 'Origin'); | ||
| c.vary('Origin'); |
Summary by CodeRabbit
Varyresponse header.Varyheader values when handling CORS responses, improving compatibility with caches and clients that rely on multiple request headers.