bypassCSP
bypassCSP
is an optional property that allows to bypass the Content Security Policy (CSP) of the page. By default is set to false
.
api/routes/screenshot.ts
const { UrlToImage } from '@url2image/sdk'
const { data, success, message } = await UrlToImage({
url: 'URL_TO_SCREENSHOT',
token: 'YOUR_API_KEY',
options: {
bypassCSP: true
}
})