-
Notifications
You must be signed in to change notification settings - Fork 429
fix(event_handler): disable allow-credentials header when origin allow_origin is * #4638
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d74068f
bug(event_handler): fix cors no origin bug
sthulb ac9b20e
create functional test
sthulb 6e875e9
fix cors
sthulb 7599b05
fix test structure
sthulb d71f9ad
add test event
sthulb 90eafc5
Merge branch 'develop' into bug-cors
sthulb 4ee67b2
Merge branch 'develop' into bug-cors
leandrodamascena cdbd01e
add allowed_origins method to CORSConfig
sthulb 2756d09
Merge branch 'develop' into bug-cors
sthulb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"version": "1.0", | ||
"resource": "/my/path", | ||
"path": "/my/path", | ||
"httpMethod": "GET", | ||
"headers": { | ||
"Header1": "value1", | ||
"Header2": "value2" | ||
}, | ||
"multiValueHeaders": { | ||
"Header1": [ | ||
"value1" | ||
], | ||
"Header2": [ | ||
"value1", | ||
"value2" | ||
] | ||
}, | ||
"queryStringParameters": { | ||
"parameter1": "value1", | ||
"parameter2": "value" | ||
}, | ||
"multiValueQueryStringParameters": { | ||
"parameter1": [ | ||
"value1", | ||
"value2" | ||
], | ||
"parameter2": [ | ||
"value" | ||
] | ||
}, | ||
"requestContext": { | ||
"accountId": "123456789012", | ||
"apiId": "id", | ||
"authorizer": { | ||
"claims": null, | ||
"scopes": null | ||
}, | ||
"domainName": "id.execute-api.us-east-1.amazonaws.com", | ||
"domainPrefix": "id", | ||
"extendedRequestId": "request-id", | ||
"httpMethod": "GET", | ||
"identity": { | ||
"accessKey": null, | ||
"accountId": null, | ||
"caller": null, | ||
"cognitoAuthenticationProvider": null, | ||
"cognitoAuthenticationType": null, | ||
"cognitoIdentityId": null, | ||
"cognitoIdentityPoolId": null, | ||
"principalOrgId": null, | ||
"sourceIp": "192.168.0.1/32", | ||
"user": null, | ||
"userAgent": "user-agent", | ||
"userArn": null, | ||
"clientCert": { | ||
"clientCertPem": "CERT_CONTENT", | ||
"subjectDN": "www.example.com", | ||
"issuerDN": "Example issuer", | ||
"serialNumber": "a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1", | ||
"validity": { | ||
"notBefore": "May 28 12:30:02 2019 GMT", | ||
"notAfter": "Aug 5 09:36:04 2021 GMT" | ||
} | ||
} | ||
}, | ||
"path": "/my/path", | ||
"protocol": "HTTP/1.1", | ||
"requestId": "id=", | ||
"requestTime": "04/Mar/2020:19:15:17 +0000", | ||
"requestTimeEpoch": 1583349317135, | ||
"resourceId": null, | ||
"resourcePath": "/my/path", | ||
"stage": "$default" | ||
}, | ||
"pathParameters": null, | ||
"stageVariables": null, | ||
"body": "Hello from Lambda!", | ||
"isBase64Encoded": false | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.