generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 466
Closed
Labels
event_handlersfeature-requestfeature requestfeature requesthelp wantedCould use a second pair of eyes/handsCould use a second pair of eyes/hands
Description
Is your feature request related to a problem? Please describe.
In some cases, we would like to support multiple origins in CORS when defining an API Gateway/ALB event handler (e.g. support calling an API from "localhost" in dev, or webapps living in different origins calling the same API).
Describe the solution you'd like
Allow providing a list of origins CORSConfig(allow_origins=[]) (source). If the client's Origin is in that list, that value is returned in the response header. Otherwise - an arbitrary (e.g. 1st) value from the list can be returned.
i-am-mani and maafkmichaelbrewer and takamatsu
Metadata
Metadata
Assignees
Labels
event_handlersfeature-requestfeature requestfeature requesthelp wantedCould use a second pair of eyes/handsCould use a second pair of eyes/hands