Skip to content

Commit 4eb3d16

Browse files
committed
stop cloudfront overriding authorization headers set in lambda@edge
1 parent 3bc0d9a commit 4eb3d16

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"folder-hash": "^4.0.4",
6161
"lodash": "^4.17.21",
6262
"minimist": "^1.2.8",
63-
"sveltekit-adapter-aws-base": "^1.5.3"
63+
"sveltekit-adapter-aws-base": "^1.5.5"
6464
},
6565
"release": {
6666
"branches": [

stacks/main/resources.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export function buildCDN(
245245
description: 'Default Origin Access Control',
246246
name: 'CloudFrontOriginAccessControl',
247247
originAccessControlOriginType: 's3',
248-
signingBehavior: 'always',
248+
signingBehavior: 'no-override',
249249
signingProtocol: 'sigv4',
250250
}
251251
)
@@ -254,9 +254,6 @@ export function buildCDN(
254254
name: 'Managed-CachingOptimized',
255255
})
256256

257-
// serverFunctionURL.functionUrl.apply(
258-
// (endpoint) => endpoint.split('://')[1].slice(0, -1)
259-
260257
const distribution = new aws.cloudfront.Distribution(
261258
registerName('CloudFrontDistribution'),
262259
{

0 commit comments

Comments
 (0)