fix: add Sec-Fetch browser headers to Yuasa scraper to bypass 403
Production server IP was being rejected by yuasabatteries.com as a bot. Added full Chrome Sec-Fetch-* and Sec-CH-UA header suite (same fix applied to retrorides earlier) so the server appears as a real browser navigation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
95e100c9b4
commit
54b2ad381c
@ -10,6 +10,15 @@ const FETCH_HEADERS = {
|
|||||||
"Accept-Encoding": "identity",
|
"Accept-Encoding": "identity",
|
||||||
"Connection": "keep-alive",
|
"Connection": "keep-alive",
|
||||||
"Cache-Control": "no-cache",
|
"Cache-Control": "no-cache",
|
||||||
|
"Pragma": "no-cache",
|
||||||
|
"Upgrade-Insecure-Requests": "1",
|
||||||
|
"Sec-Fetch-Dest": "document",
|
||||||
|
"Sec-Fetch-Mode": "navigate",
|
||||||
|
"Sec-Fetch-Site": "none",
|
||||||
|
"Sec-Fetch-User": "?1",
|
||||||
|
"Sec-CH-UA": '"Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"',
|
||||||
|
"Sec-CH-UA-Mobile": "?0",
|
||||||
|
"Sec-CH-UA-Platform": '"Windows"',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Default battery ID list -- override with YUASA_BATTERY_IDS env var (comma-separated)
|
// Default battery ID list -- override with YUASA_BATTERY_IDS env var (comma-separated)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user