by rootlocus · 8y ago · 0 comments
So you don't care about the content, only the source? There's nothing stopping the website from simply routing malicious JS from the ad network. Even worse, it would be much harder to block it this way.
If you let inline malicious code inside your website then you're doing it wrong.
What exactly are you trying to block?
> Since my ad network doesn't serve any JS from an advertiser
That's about content.
> As long as my browser doesn't load anything from different domains
That's about the origin.
Just because your network doesn't serve malicious JS, doesn't mean all networks do. And just because it comes from the same origin, doesn't mean it's safe.