I published a Copilot Studio agent (demo & custom web app) and am trying to embed it directly inside a Power BI report (Web Content / iFrame / Custom visual). The bot works fine on its demo/live site, but when I add it to Power BI the agent fails to load due to authentication/iframe restrictions — the browser shows framing errors (e.g. “Refused to display” / login.microsoftonline refused to connect) and I suspect X-Frame-Options / Content-Security-Policy frame-ancestors or Azure AD interactive login blocking the iframe.
I’ve already tried:
Using the Copilot demo site embed snippet and a self-hosted web app (both published from Copilot Studio).
Adding it inside Power BI’s Web Content / HTML viewer and a custom visual.
Enabling different agent publish/auth options (demo/no-auth vs Authenticate with Microsoft).
What is the recommended way to embed a Copilot Studio agent inside a Power BI report so it works for authenticated users (best-practice architecture, required authentication flow, and headers/CSP that must be set)? If embedding in an iframe is not supported because of Microsoft login/X-Frame/CSP restrictions, please suggest supported alternatives (Power Apps visual, side-panel web app with token-based auth, or Power BI Embedded with service principal + backend proxy) and any sample config/snippets that have worked for you.