Revert "common: Block requests with unusual Host header"

This reverts commit 1a10e1674511ba1433e2f3ab96a99973757353bb.
This commit is contained in:
LittleChest 2026-02-12 17:47:01 +08:00
parent 66f9b52254
commit 6449b08064

View File

@ -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 =