You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extra HTTP headers aren't applied to requests made by Web Workers #3578
context.setExtraHTTPHeaders() and page.setExtraHTTPHeaders() apply to the worker's script request, but not to requests the worker makes itself (e.g. fetch() inside a dedicated worker). Playwright sends the merged context + page headers on those requests too.
awaitstagehand.browser.context.setExtraHTTPHeaders({"x-ctx": "1"});awaitpage.setExtraHTTPHeaders({"x-page": "1"});awaitpage.goto(url);// page runs: new Worker("/worker.js")// worker.js: fetch("/api/data")
Expected: GET /api/data carries x-ctx and x-page, matching Playwright.
Actual: neither header is sent.
Follow-up to #3460, which fixed merging between the context and page levels.
Activity
MannXo commentedon Nov 30, 2026
I'll work on this one , can I get assigned?