Locking down untrusted JavaScript after it loads

giacaglia 13 points 3 comments November 24, 2026
transcend.io · View on Hacker News

Discussion Highlights (2 comments)

banter86

navigation hijacking is nasty but so hard to follow if you don't know what you're seeing

mkfrl09

I'm the CTO of Transcend We are living in a world where you need to assume breach, including in your own script tags. Last week it was Optimizely. Malicious JavaScript was injected into a Web Experimentation project, and it went after card details and crypto transfers on live customer sites. This is similar to the Magecart campaign in 2025 as well. airgap.js sit's in a league of it's own. not only do we believe it's the fastest way to generate and build a content security policy (CSP) that deals gracefully with logins, feature flags, script managers, deep code dependencies - it's also unique able to regulate navigations just like a CSP would, and supports drop in "overrides" that allow for allowing or rejecting requests and override functions. https://docs.transcend.io/docs/consent-management/security-c... https://docs.transcend.io/docs/consent-management/security-c... Example repo: https://github.com/transcend-io/examples/tree/main/airgap-se...

Semantic search powered by Rivestack pgvector
4,072 stories · 37,019 chunks indexed