serverless / serverless/serverless

AWS API Gateway: Support for W3C conform multiple CORS origins

Open
#3,745 16 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cat/aws-event-api-gateway enhancement provider/wait-for-support
Dominant language
JavaScript
Stars
46.9k
Forks
5.7k
Avg merge
10h 7m
Merged PRs (30d)
57

Description

This is a Feature Proposal

Description

This is a follow-up issue on https://github.com/serverless/serverless/issues/2476 since we've implemented the origin config parameter to make it possible to define one origin per event definition (as API Gateway proposes it).

However sometimes users might want to define multiple origins. We should discuss this feature in more-depth in this issue since it might introduce some implementation challenges do to lack of direct support via CloudFormation.

More discussion about this can be found here.

/cc @alexcasalboni @HyperBrain @jokeyrhyme

Contributor guide

Open the contributing guide

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.

Research direction

Start with the linked discussion in issue #2476, especially the referenced comment, and review how the existing origin configuration supports one origin per event definition. Clarify the desired multiple-origin behavior and the CloudFormation limitations before choosing an implementation. No files, tests, or concrete completion criteria are named in this issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
api, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.