try cookies

This commit is contained in:
2025-12-07 18:57:34 +01:00
parent 7094801549
commit df1a60034c
2 changed files with 24 additions and 2 deletions

View File

@@ -79,9 +79,23 @@ if match:
else:
wh_masked_url = "[Invalid webhook URL]"
# HTTP headers - minimal
# HTTP headers - Firefox working set
HEADERS = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language": "fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3",
"Accept-Encoding": "gzip, deflate, br, zstd",
"Cache-Control": "no-cache",
"Pragma": "no-cache",
"Sec-GPC": "1",
"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"Sec-Fetch-Dest": "document",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Site": "none",
"Sec-Fetch-User": "?1",
"Priority": "u=0, i",
"TE": "trailers"
}
# Load country setting and localization config