From 6449b080643951ad815190c0187177b0fec0ac06 Mon Sep 17 00:00:00 2001 From: LittleChest Date: Thu, 12 Feb 2026 17:47:01 +0800 Subject: [PATCH] Revert "common: Block requests with unusual Host header" This reverts commit 1a10e1674511ba1433e2f3ab96a99973757353bb. --- common.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/common.js b/common.js index 482e2ae..644a62b 100644 --- a/common.js +++ b/common.js @@ -45,13 +45,6 @@ export default async function handler( } const { method, headers, url } = request; - - const host = headers.get("Host"); - - if (host && (host.endsWith(":443") || host.endsWith(":80"))) { - return new Response(null, { status: 403 }); - } - const { search, searchParams, pathname } = new URL(url); const ip =