Skip to content

Commit 5530ffe

Browse files
committed
update cdk
1 parent 6a5ffb7 commit 5530ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SvelteKitSite.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class SvelteKitSite extends Construct {
9898
const distribution = new cdk.aws_cloudfront.Distribution(this, `${id}-svelte-cloudfront`, {
9999
...props?.cloudfrontProps,
100100
defaultBehavior: {
101-
allowedMethods: cdk.aws_cloudfront.AllowedMethods.ALLOW_GET_HEAD_OPTIONS,
101+
allowedMethods: cdk.aws_cloudfront.AllowedMethods.ALLOW_ALL,
102102
origin: new cdk.aws_cloudfront_origins.HttpOrigin(cdk.Fn.select(2, cdk.Fn.split('/', svelteURL.url)), {
103103
customHeaders: {
104104
's3-host': staticAssets.virtualHostedUrlForObject().replace('https://', '')

0 commit comments

Comments
 (0)