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
On the redirected request, Sec-CH-UA is not properly overridden. I suspect this is a Chrome issue, and CDP spec isn't really specific on how Network.setExtraHTTPHeaders should work for headers that are already sent.
import asyncio
from playwright.async_api import async_playwright
async def main():
async with async_playwright() as p:
browser = await p.chromium.launch()
page = await browser.new_page(extra_http_headers={"sec-ch-ua": "ARBITRARY"})
await page.goto('http://127.0.0.1:9919')
asyncio.run(main())
On the redirected request, Sec-CH-UA is not properly overridden. I suspect this is a Chrome issue, and CDP spec isn't really specific on how
Network.setExtraHTTPHeaders
should work for headers that are already sent.Server:
Output from server:
The text was updated successfully, but these errors were encountered: