Skip to content

Commit

Permalink
Allow cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Sep 8, 2023
1 parent ea60935 commit be6499a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ const functionUrl = new aws.lambda.FunctionUrl(
{
functionName: lambda.name,
authorizationType: "NONE",
cors: {
allowHeaders: ["*"],
allowMethods: ["GET"],
allowOrigins: ["*"],
maxAge: 3600,
},
}
);

Expand Down

0 comments on commit be6499a

Please sign in to comment.