Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit bb6f7b0

Browse files
authored
Merge pull request #2 from topcoder-platform/issue-125
For #125: AWS handshake
2 parents aa6bc82 + ceb9480 commit bb6f7b0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

DLPTrigger/lambda.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ export async function handle (event: aws.APIGatewayEvent, context: aws.Context)
4343
}
4444
case 'OPTIONS':
4545
const additionalHeaders = await handleOptionsRequest(event, context)
46-
Object.assign(headers, additionalHeaders)
46+
const additionalCorsHeaders = {
47+
'Access-Control-Expose-Headers': Object.keys(additionalHeaders).join(' ')
48+
}
49+
Object.assign(
50+
headers,
51+
additionalHeaders,
52+
additionalCorsHeaders
53+
)
4754
break
4855
default:
4956
statusCode = 405

0 commit comments

Comments
 (0)