Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global cors #1276

Merged
merged 2 commits into from
Oct 22, 2019
Merged

Global cors #1276

merged 2 commits into from
Oct 22, 2019

Conversation

stealthycoin
Copy link
Contributor

We missed a feature in closing #70 the global enabling of CORS.

@codecov-io
Copy link

codecov-io commented Oct 15, 2019

Codecov Report

Merging #1276 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1276      +/-   ##
==========================================
+ Coverage   96.19%   96.19%   +<.01%     
==========================================
  Files          28       28              
  Lines        5285     5288       +3     
  Branches      674      675       +1     
==========================================
+ Hits         5084     5087       +3     
  Misses        130      130              
  Partials       71       71
Impacted Files Coverage Δ
chalice/app.py 97.52% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbe9649...4cf69d3. Read the comment docs.


Global cors configuration. If a route-level cors configuration is not
provided, or is ``None`` then this configuration will be used. By
defualt it is set to ``False``. This can either be ``True``, ``False``,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/defualt/default/

CORS config can now be set globally and overriden by a route's `cors`
argument. Routes that do not explicitly set a cors parameter, or provide
`None` will use the global CORS config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants