OrcaBus / OrcaBus/platform-cdk-constructs
Make OrcaBusApiGateway CORS config extensible
Open
@raylrui is already working on this.
Since Jun 10, 2026.
enhancement
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 17h 15m
- Merged PRs (30d)
- 12
Description
Problem
OrcaBusApiGateway currently hardcodes CORS allowHeaders and allowMethods, and does not expose response headers through CORS.
Service APIs may need additional CORS support, for example:
PUTmethods, such as replacing a resource representation withPUT /api/v1/...- custom request headers, such as
If-Matchfor optimistic concurrency - exposed response headers, such as
ETag, so browser clients can read version/concurrency metadata
Because browser preflight is handled by API Gateway before Lambda receives the request, missing gateway CORS methods or headers cannot be fixed by service-level CORS middleware.
Proposed Change
Update OrcaBusApiGateway to:
- include
PUTin defaultallowMethods - allow services to extend
allowHeaders - allow services to configure
exposeHeaders
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.