Skip to content

Should BiDi expose a command / configuration to bypass CSP #1033

@juliandescottes

Description

@juliandescottes

At the moment Chrome seems to bypass CSPs by default (see #1024 ).

But I can see in CDP there is a dedicated command: https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-setBypassCSP
It seems exposed in puppeteer https://pptr.dev/api/puppeteer.page.setbypasscsp and in playwright https://playwright.dev/docs/api/class-testoptions#test-options-bypass-csp

Are those options similar to the topic discussed in #1024 ? (ie allowing to use "eval", "new Function" etc...) via script evaluation, even if the content page is using strict CSPs.

cc @OrKoN @yury-s

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions