chore: drop explanatory comment from cookie scoping

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ThePhaselessandClaude Opus 5.5 committed 2026-10-06 23:49:56 +02:00
1 parent bfa03a4a36
commit a5e903e60a
1 file changed
-5
-5
View File
@@ -82,11 +82,6 @@ async def read_item(request: LinkRequest, dep: BrowserDep) -> LinkResponse:
detail=f"Could not reach the target: {e}",
) from e
# Scope the cookies to the page that was asked for. An unscoped call returns every
# cookie in the browser context, including ones set by third-party frames and ads,
# and a single malformed third-party value makes a client discard the whole jar,
# cf_clearance with it. Selenium, which FlareSolverr uses, only ever returned the
# cookies for the current document, so clients are built for the scoped shape.
cookie_urls = [request.url]
if dep.page.url and dep.page.url not in cookie_urls:
cookie_urls.append(dep.page.url)