aws / aws/chalice

Support more CORS options

Open
#787 16 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

Currently, Chalice supports CORS options to inject some headers ([https://github.com/aws/chalice#tutorial-cors-support](https://github.com/aws/chalice#tutorial-cors-support)).

But there are two missing options which are available in the web console when you enable CORS through API Gateway service :

screen shot 2018-04-07 at 12 54 28

Gateway Responses
DEFAULT_4XX DEFAULT_5XX

If they are not enabled, the error like "Missing Authentication Token" is sent without CORS headers which is very annoying when you make a request from your react web application because you can't get the status error code on non-cors requests.

```
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access. The response had HTTP status code 403.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.