Unable to download HAR file, following the error on the network panel
Not allowed to load local resource: chrome://version/?get-har
Using the same code shared in the README
let harPlugin = require('nightmare-har-plugin')
harPlugin.install(Nightmare)
let options = {
waitTimeout: 1000
}
let nightmare = Nightmare(Object.assign(harPlugin.getDevtoolsOptions(), options))
nightmare
.waitForDevtools()
.goto('http://news.ycombinator.com')
.wait('#hnmain')
.getHAR()
.end()
.then((result) => console.log(JSON.stringify({log: result})))
.catch((error) => console.error(error))```
Unable to download HAR file, following the error on the network panel
Not allowed to load local resource: chrome://version/?get-harUsing the same code shared in the README