Opening local HTML file using Puppeteer

前端 未结 7 1881
梦谈多话
梦谈多话 2020-12-30 19:04

Is it possible to open a local HTML file with headless Chrome using Puppeteer (without a web server)? I could only get it to work against a local server.

I found

相关标签:
7条回答
  • 2020-12-30 19:41

    Navigation to local files only works if you also pass a referer of file://, otherwise security restrictions prevent this from succeeding.

    0 讨论(0)
提交回复
热议问题