我试图在我的启动界面中执行以下Lua脚本
function main(splash, args)
assert(splash:go(args.url))
splash.set_viewport_full()
assert(splash:wait(0.5))
local title=splash:evaljs('document.title')
return {
html = splash:html(),
png = splash.png(),
har = splash:har(),
}
end
我遇到以下错误
"EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive:
但是对于某些网址(例如scrapinghub.com),它工作正常。
任何人都可以告诉我如何解决它。