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

Require Cors header values to be specified with double quotes. #1395

Merged
merged 7 commits into from
Sep 11, 2019

Conversation

stalar
Copy link
Contributor

@stalar stalar commented Sep 3, 2019

Issue #, if available: #1381

Description of changes:

Require Cors header values to have double quoting for start-api. If quotes are missing, fail with an exception.

Verified by running the template from #1381 both locally and deployed.

Checklist:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sriram-mv
Copy link
Contributor

Have re-kicked the build, somehow it didnt start, will review this once the builds are okay.

@sriram-mv sriram-mv self-requested a review September 6, 2019 04:54
Copy link
Contributor

@sriram-mv sriram-mv left a comment

Choose a reason for hiding this comment

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

couple comments, otherwise this looks good. 👍

samcli/commands/local/lib/sam_api_provider.py Outdated Show resolved Hide resolved
samcli/commands/local/lib/sam_api_provider.py Outdated Show resolved Hide resolved
@stalar stalar requested a review from sriram-mv September 10, 2019 14:54
@jfuss
Copy link
Contributor

jfuss commented Sep 11, 2019

@stalar Thanks for the PR. Things look good. I did add two additional unit tests to verify exceptions are thrown correctly.

@thesriram Can you take a peek at this? I think its good to go but wanted another approval since I added some tests.

Copy link
Contributor

@sriram-mv sriram-mv left a comment

Choose a reason for hiding this comment

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

Looks good thanks!

@sriram-mv sriram-mv merged commit 78274a0 into aws:develop Sep 11, 2019
@danludwig
Copy link

Will the patch for this not be available until the next cli release?

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.

4 participants