We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b12f0 commit 23fa3e5Copy full SHA for 23fa3e5
src/api/lambda.ts
@@ -20,7 +20,7 @@ const handler = async (event: APIGatewayEvent, context: Context) => {
20
// check that the request has the right header (coming from cloudfront)
21
if (
22
!event.headers ||
23
- !(event.headers["X-Origin-Verify"] === process.env.ORIGIN_VERIFY_KEY)
+ !(event.headers["x-origin-verify"] === process.env.ORIGIN_VERIFY_KEY)
24
) {
25
const newError = new ValidationError({
26
message: "Request is not valid.",
0 commit comments