Update file block-zoomer-origins.ts

This commit is contained in:
reanon
2025-04-15 00:37:50 +00:00
parent 94e2c907b5
commit 6479cefe07
@@ -14,7 +14,7 @@ class ZoomerForbiddenError extends Error {
* stop getting emails asking for tech support.
*/
export const blockZoomerOrigins: RequestPreprocessor = (req) => {
const origin = req.headers.origin || req.headers.referer || req.headers.host || req.headers.x-direct-url;
const origin = req.headers.origin || req.headers.referer || req.headers.host;
if (origin && DISALLOWED_ORIGIN_SUBSTRINGS.some((s) => origin.includes(s))) {
// Venus-derivatives send a test prompt to check if the proxy is working.
// We don't want to block that just yet.