chore: fix cors for envoys#4720
chore: fix cors for envoys#4720NathanFlurry wants to merge 1 commit into04-23-chore_fix_serverlessfrom
Conversation
Review: chore: fix cors for envoysOverall: Good architectural direction -- centralizing CORS at the guard routing layer rather than in each gateway implementation is cleaner, avoids duplication, and ensures auth error responses carry CORS headers (the key bug being fixed). The lifetime/ownership fixes for the Security:
|
| Priority | Issue |
|---|---|
| Fix before merging | allow_credentials: true + allow_origin: "*" in the no-Origin-header fallback (spec violation, could confuse caches) |
| Worth confirming | OPTIONS ordering after parse_actor_path in route_request_path_based |
| Nice to have | Consolidate origin extraction into origin_header() inside CorsPreflight |
| Low priority | expose_headers: "*" + credentials spec note |
| Nice to have | Test coverage for CORS preflight and non-preflight behavior |
Preview packages published to npmInstall with: npm install rivetkit@pr-4720All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-878b7fb
docker pull rivetdev/engine:full-878b7fbIndividual packagesnpm install rivetkit@pr-4720
npm install @rivetkit/react@pr-4720
npm install @rivetkit/rivetkit-napi@pr-4720
npm install @rivetkit/workflow-engine@pr-4720 |
0586791 to
cceeaef
Compare
822f594 to
5c4d677
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: