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
66.31k stars 3.62k forks source link

Blocking browser binaries urls #31839

Closed mohan388 closed 2 months ago

mohan388 commented 2 months ago

🚀 Feature Request

Our security team wanted to block all CDN urls of browser binaries (chromium,Firefox/WebKit/ffmpeg), is there any impact on Playwright features?

Example

This will prevent downloading softwares from internet. https://playwright.azureedge.net/builds https://playwright-akamai.azureedge.net/builds https://playwright-verizon.azureedge.net/builds

Motivation

Every developers in compliance with corporate security policy

dgozman commented 2 months ago

@mohan388 Playwright only downloads binaries during the npx playwright install command. After that, it will never reach to the CDN. Take a look at downloading browsers from an alternative location and downloading browsers through a proxy, it might be useful in your case.

pavelfeldman commented 2 months ago

Closing as per above, please feel free to open a new issue if this does not cover your use case.