[fix] engines: tusksearch cors request headers (#6758)

Added the ``Origin`` and ``Sec-Fetch-Site`` http headers to bypass tusksearch's latest bot detection.
This commit is contained in:
Brock Vojkovic
2026-09-19 13:30:06 +08:00
committed by GitHub
parent c0042add30
commit 367fb6537c

View File

@@ -96,6 +96,8 @@ def request(query: str, params: "OnlineParams") -> None:
"x-lon": str(round(random.random() * 90, 4)), "x-lon": str(round(random.random() * 90, 4)),
"x-lat": str(round(random.random() * 90, 4)), "x-lat": str(round(random.random() * 90, 4)),
"Referer": "https://tusksearch.com/", "Referer": "https://tusksearch.com/",
"Origin": "https://tusksearch.com",
"Sec-Fetch-Site": "same-site",
} }
) )