HttpApiCorsConfiguration AllowOrigins does not support multiple origins locally
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
### Description:
Using AWS SAM locally AllowOrigins does not work as expected, it concats the list and does not choose the correct origin
### Current Template:
```
HttpApi:
Type: AWS::Serverless::HttpApi
Properties:
CorsConfiguration:
AllowOrigins:
- "http://localhost:3000"
- "http://localhost:3002"
AllowHeaders:
- "*"
AllowMethods:
- "*"
MaxAge: 43200
AllowCredentials: true
```
### Observed result:

### Expected result:
API Gateway allows multiple origins, SAM local works differently
Contributor guide
Assessment
This issue has not been assessed yet.