mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(puppeteer-web): a note about running inside extension (#3477)
Fixes #3455
This commit is contained in:
parent
8e93eab784
commit
4110087a60
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user