A community member is experiencing an issue with the PlaywrightCrawler, where they are receiving an error related to the Content Security Policy (CSP). They have tried setting the --disable-web-security argument in the launchContext of the crawler, but it did not work.
Other community members have provided suggestions, such as sharing the code snippet where the crawler instance is created. One community member has mentioned that this is a bug in Playwright and provided a workaround in a GitHub issue.
The issue has been resolved, and the community member has expressed their gratitude.
Bypass the CSP in PlaywrightCrawler is not working!
I'm receiving the following error: "page.waitForFunction: EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src *.facebook.com *.fbcdn.net *.facebook.net *.google-analytics.com .google.com 127.0.0.1: 'unsafe-inline' blob: data: 'self' connect.facebook.net 'wasm-unsafe-eval'".",