From 4110087a601ce2c37fc441e7cfa0012538d9c5d1 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 1 Nov 2018 15:45:06 -0700 Subject: [PATCH] docs(puppeteer-web): a note about running inside extension (#3477) Fixes #3455 --- utils/browser/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utils/browser/README.md b/utils/browser/README.md index 842ec6de..1fb0d778 100644 --- a/utils/browser/README.md +++ b/utils/browser/README.md @@ -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) 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.