serverless / serverless/examples
CORS headers needed on aws-python-rest-api-with-dynamodb example
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.5k
- Forks
- 4.4k
- Avg merge
- 2h 55m
- Merged PRs (30d)
- 3
Description
In https://github.com/serverless/examples/tree/master/aws-python-rest-api-with-dynamodb, cors: true is set in configuration of each endpoint, but that only covers pre-flight CORS requests. Need to add headers in the response object as well, per https://www.serverless.com/blog/cors-api-gateway-survival-guide
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.
Research direction
Start in the aws-python-rest-api-with-dynamodb example and inspect the endpoint handlers and their response objects; the issue links the relevant CORS guidance. Confirm that each response includes the needed CORS headers in addition to the existing cors: true endpoint configuration. Done when the example handles both pre-flight and response CORS behavior as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- api, backend, cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100