mirror of
https://github.com/searxng/searxng.git
synced 2026-09-23 06:36:12 +00:00
[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:
@@ -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",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user