microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
65.49k stars 3.56k forks source link

[Feature] Set bypassCSP for existing context #27696

Closed ngugcx closed 3 weeks ago

ngugcx commented 10 months ago
const browser = await chromium.connectOverCDP(`http://127.0.0.1:9876`)
const context = browser.contexts()[0]
const page = await this.driver.newPage()

I'm using playwright to connect to a running chromium. There is no way to set bypassCSP for the default context or pages created by it.

If creating new context, bypassCSP can be passed as an option, but it's a new window without plugins.

qasamppa commented 6 months ago

Voting +1 for this.

pavelfeldman commented 3 weeks ago

Why was this issue closed?

Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.

If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.