mirror of
https://github.com/searxng/searxng.git
synced 2026-08-12 18:21:27 +00:00
[fix] dogpile: access denied due to missing origin header
This commit is contained in:
@@ -43,9 +43,10 @@ def init(_):
|
||||
|
||||
def request(query: str, params: "OnlineParams"):
|
||||
params["url"] = f"{base_url}/api/{dogpile_categ}"
|
||||
params["headers"]["Origin"] = base_url
|
||||
|
||||
params["method"] = "POST"
|
||||
params["json"] = {"q": query, "qadf": safe_search_map[params["safesearch"]], "page": params["pageno"]}
|
||||
return params
|
||||
|
||||
|
||||
def response(resp: "SXNG_Response"):
|
||||
|
||||
Reference in New Issue
Block a user