OrcaBus / OrcaBus/platform-cdk-constructs

Make OrcaBusApiGateway CORS config extensible

Open
#246 0 comments 0 reactions 1 assignee View on GitHub

@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:

  • PUT methods, such as replacing a resource representation with PUT /api/v1/...
  • custom request headers, such as If-Match for 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 PUT in default allowMethods
  • allow services to extend allowHeaders
  • allow services to configure exposeHeaders

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.