Skip to content

Commit

Permalink
fix: allow all methods
Browse files Browse the repository at this point in the history
  • Loading branch information
apalchys committed Nov 29, 2023
1 parent ebfa7f9 commit 1bd16b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cdk/AngularCourseStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export class AngularCourseStack extends cdk.Stack {
origin: new origins.HttpOrigin(
`${httpApi.httpApiId}.execute-api.${this.region}.amazonaws.com`
),
allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,
responseHeadersPolicy:
cloudfront.ResponseHeadersPolicy
.CORS_ALLOW_ALL_ORIGINS_WITH_PREFLIGHT_AND_SECURITY_HEADERS,
Expand Down

0 comments on commit 1bd16b2

Please sign in to comment.