Skip to content

Commit c58850b

Browse files
fix: youtube preview images via fix http header referer
1 parent 45369a5 commit c58850b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/export/pdf.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ export async function exporter(argument: PdfExportArguments) {
265265
}
266266
})
267267

268+
await page.setExtraHTTPHeaders({
269+
referer: 'https://liascript.github.io/',
270+
})
268271
// Wait for page to load completely
269272
// Using 'networkidle2' ensures all network requests are complete
270273
// Timeout set to 0 (unlimited) to handle large courses

0 commit comments

Comments
 (0)