serverless / serverless/examples

CORS headers needed on aws-python-rest-api-with-dynamodb example

Open
#539 0 comments 0 reactions 0 assignees View on GitHub

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.