puppeteer/new-docs/puppeteer.protocol.runtime.evaluaterequest.allowunsafeevalblockedbycsp.md

14 lines
839 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Runtime](./puppeteer.protocol.runtime.md) &gt; [EvaluateRequest](./puppeteer.protocol.runtime.evaluaterequest.md) &gt; [allowUnsafeEvalBlockedByCSP](./puppeteer.protocol.runtime.evaluaterequest.allowunsafeevalblockedbycsp.md)
## Protocol.Runtime.EvaluateRequest.allowUnsafeEvalBlockedByCSP property
The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.
<b>Signature:</b>
```typescript
allowUnsafeEvalBlockedByCSP?: boolean;
```