ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.68k stars 1.14k forks source link

WebAssembly module because 'unsafe-eval' #1834

Open Lordoxez opened 5 months ago

Lordoxez commented 5 months ago

Message: javascript error: WebAssembly.compile(): Refused to compile or instantiate WebAssembly module because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src chrome://resources chrome://webui-test 'self'"

Lordoxez commented 5 months ago

my code is this @app.route('/hsw', methods=['POST']) def get_hsw(): data = request.json req = data.get('req') result = hsw(req) return result

if name == "main": options = uc.ChromeOptions()

options.add_argument('--headless')

driver = uc.Chrome(options=options)

app.run(host='0.0.0.0', port="5000")