-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(TA-1696): set cors allow credentials optionally #90
feat(TA-1696): set cors allow credentials optionally #90
Conversation
@@ -99,6 +99,15 @@ describe("AuthenticatedApi", () => { | |||
{ | |||
Name: "test-MyTestAuthenticatedApi", | |||
ProtocolType: "HTTP", | |||
CorsConfiguration: { | |||
AllowCredentials: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment: confirms that by default AllowCredentials
is set to true
to ensure backwards compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎉 This PR is included in version 3.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
talis-cdk-constructs hard codes the value of the CORS header
access-control-allow-credentials
totrue
. We have a requirement in the new extension to wildcardaccess-allow-origins
however, whenaccess-control-allow-credentials
value is true, AWS API Gateway will not allow you to wildcard the origins. We therefore need to be able to setaccess-control-allow-credentials
to false so that we can wildcard the origin.