Skip to content

Commit 3b004dd

Browse files
authored
Fix for external middleware (#412)
* do not remove read only headers * Create warm-waves-allow.md
1 parent d5efc43 commit 3b004dd

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.changeset/warm-waves-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"open-next": patch
3+
---
4+
5+
Fix for external middleware

packages/open-next/src/converters/aws-cloudfront.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ const CloudFrontBlacklistedHeaders = [
4848
"x-cache",
4949
"x-forwarded-proto",
5050
"x-real-ip",
51-
52-
// Read-only headers, see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-function-restrictions-all.html#function-restrictions-read-only-headers
53-
"accept-encoding",
54-
"content-length",
55-
"if-modified-since",
56-
"if-none-match",
57-
"if-range",
58-
"if-unmodified-since",
59-
"transfer-encoding",
60-
"via",
6151
];
6252

6353
function normalizeCloudFrontRequestEventHeaders(

0 commit comments

Comments
 (0)