Update file block-zoomer-origins.ts
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user