Skip to content

Commit 86082c1

Browse files
committed
remove default CORS setting, since you can no longer override it in code
1 parent 56a2d58 commit 86082c1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/utils.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,10 +825,6 @@ const createOrUpdateApi = async (instance, inputs, clients) => {
825825
// CredentialsArn: inputs.roleName || instance.state.defaultLambdaRoleArn,
826826
Description: inputs.description || getDefaultDescription(instance),
827827
Target: `arn:aws:apigateway:${instance.state.region}:lambda:path/2015-03-31/functions/${lambdaArn}/invocations`,
828-
CorsConfiguration: {
829-
AllowHeaders: ['*'],
830-
AllowOrigins: ['*']
831-
}
832828
}
833829

834830
const res = await clients.apig.createApi(createApiParams).promise()

0 commit comments

Comments
 (0)