Options
bypassCSP
Ignore the page Content Security Policy, which some custom scripts and styles need.
- Type
- boolean
- Default
- false
- Group
- Page behavior
On this page
OverviewLink to this section
With true, the browser ignores the Content Security Policy of the page. Turn it on when a strict policy blocks your own script or styles from running.
ExampleLink to this section
The same request with the SDK, with cURL and as the raw JSON body.
screenshot.ts
import { Url2Image } from '@url2image/sdk'
const { success, data, message } = await Url2Image({
url: 'https://example.com',
token: process.env.URL2IMAGE_TOKEN,
options: {
bypassCSP: true
}
})Related optionsLink to this section
scriptJavaScript added to the page right before the capture.stylesCSS added to the page right before the capture.
Every option, grouped, is in the options overview.
Something unclear or missing on this page?
Tell us