Widgets lose the host origin
CopilotKit, a framework for adding interfaces for AI agents to applications, changes the default sandbox for tool widgets in version 1.80.0. Its release notes remove allow-same-origin from that sandbox. A widget receives an opaque origin instead of retaining the origin of the host page that displays the conversation.[1]
That change cuts the widget’s access to localStorage, sessionStorage, IndexedDB and cookies. These browser mechanisms hold persistent or session-bound data. Tool interfaces built around that access therefore encounter changed behaviour when the new sandbox applies, rather than inheriting the host page’s storage permissions.[1]
