最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

htmlunit Content Security Policy eval is blocked - Stack Overflow

matteradmin8PV0评论

I wrote a scraper on a javascript heavy website (written in angular) and it works perfectly. But now after a few months I get error

SEVERE: ERROR Error: Uncaught (in promise)

My suspect is when I check the website using browser and in console, it seems Content Security Policy eval is blocked

Is there a way to still use com.gargoylesoftware.htmlunit or is it selenium the way to go?

I wrote a scraper on a javascript heavy website (written in angular) and it works perfectly. But now after a few months I get error

SEVERE: ERROR Error: Uncaught (in promise)

My suspect is when I check the website using browser and in console, it seems Content Security Policy eval is blocked

Is there a way to still use com.gargoylesoftware.htmlunit or is it selenium the way to go?

Share Improve this question asked Nov 17, 2024 at 12:04 jonathan tanjonathan tan 631 silver badge9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

There is always a way :-) but maybe sometimes a long one. Please open an issue on github and provide as much information as possible and i will try to help.

Post a comment

comment list (0)

  1. No comments so far