amazon-archives / realworld-serverless-application

This project is inspired by the design and development of the AWS Serverless Application Repository - a production-grade AWS service. Learn how AWS built a production service using serverless technologies.
Apache License 2.0
515 stars 107 forks source link

fix: add cors for 4xx and 5xx reponses #11

Closed honglu closed 4 years ago

honglu commented 4 years ago

Description of changes: Adding cors in code does not cover the scenarios where API GW returns 4xx or 5xx directly without talking to the API Lambda. Add gateway responses for 4xx and 5xx errors by default.

Tests Deployed and working: http://serverlessrepo-aws-serverless-app-r-websitebucket-m2ggj252zy6m.s3-website-us-east-1.amazonaws.com

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

honglu commented 4 years ago

AWS CodeBuild CI Report

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository