Re:Show HN: Gemma Gem – AI model embedded in a browser – no ...
by veunes on Wednesday April 15, 2026 @12:21PM
(#47781307)
CORS protects your Facebook from your Gmail, but it won't protect your Gmail from the agent itself since it already has access to the DOM and JS context. If that agent gets hit with a prompt injection and decides to "Delete all mail" or exfiltrates session tokens to a third-party endpoint, the browser sandbox will actually facilitate it because it views those as legitimate user-initiated actions
If you think about it, everything we've done to make malicious webpages unable to fiddle around with your state on other sites using XHRs, are exactly and already the proper set of constraints we'd want to prevent models working with webpages from doing the same thing.