Skip to content

Commit

Permalink
Ensuring cloudfront uses correct cors origins
Browse files Browse the repository at this point in the history
  • Loading branch information
tstibbs committed May 2, 2024
1 parent 3463c68 commit 7706d5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/lib/deploy-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ class DeployStack extends Stack {
//let's keep our various APIs separate under their own subpaths, thus let's make the default path completely invalid.
origin: new HttpOrigin('default.not.in.use.invalid')
}
const cloudFrontResources = new CloudFrontResources(this, COUNTRIES_DENY_LIST, cloudfrontDefaultBehavior)
const cloudFrontResources = new CloudFrontResources(
this,
COUNTRIES_DENY_LIST,
cloudfrontDefaultBehavior,
allowedOrigins
)
cloudFrontResources.addWebSocketApi(commsUrlPrefix, webSocketStage)

let s3TempWebStorageResources = new S3TempWebStorageResources(
Expand Down

0 comments on commit 7706d5f

Please sign in to comment.