From c9a9e390242dcf0ca03e02a9a706a5e78aaffab6 Mon Sep 17 00:00:00 2001 From: Tony Fruzza Date: Mon, 15 Jun 2026 06:43:56 +0000 Subject: [PATCH] fix: remove bot-triggering headers from Amazon HTTP requests The Sec-* and Cache-Control headers in the axios request config trigger Amazon's bot detection, returning a 5KB blocking page instead of the full product page. This breaks ALL Amazon scraping, not just a.co links. Removed headers: Cache-Control, Pragma, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, Sec-Fetch-User, Upgrade-Insecure-Requests --- backend/src/services/scraper.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/backend/src/services/scraper.ts b/backend/src/services/scraper.ts index 1c829e6..475f189 100644 --- a/backend/src/services/scraper.ts +++ b/backend/src/services/scraper.ts @@ -1147,16 +1147,6 @@ export async function scrapeProduct(url: string, userId?: number): Promise