docs(puppeteer-web): a note about running inside extension (#3477)

Fixes #3455
This commit is contained in:
Andrey Lushnikov 2018-11-01 15:45:06 -07:00 committed by GitHub
parent 8e93eab784
commit 4110087a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,3 +24,13 @@ another browser instance through its WS Endpoint:
See our [puppeteer-web tests](https://github.com/GoogleChrome/puppeteer/blob/master/utils/browser/test.js) See our [puppeteer-web tests](https://github.com/GoogleChrome/puppeteer/blob/master/utils/browser/test.js)
for details. for details.
### Running inside Chrome Extension
You might want to enable `unsafe-eval` inside the extension by adding the following
to your `manifest.json` file:
```
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
```
Please see discussion in https://github.com/GoogleChrome/puppeteer/issues/3455.