Forum Discussion

Nagaraj_D's avatar
Nagaraj_D
Icon for Advocate I rankAdvocate I
3 months ago
Solved

Power BI App Owns Data Embedding – Clarification on SameSite Cookie / CSRF Concern

Hi Folks, In my organization, we are using the Power BI "app owns data" embedding solution to embed Power BI reports, dashboards, and paginated reports into a custom web application, so users can ac...
  • v-abhinavmu's avatar
    v-abhinavmu
    3 months ago

    Hi Nagaraj_D,

    Thanks for reaching out to the Microsoft Fabric Community forum.

     

    Additionally, the Power BI Security Whitepaper states:

    Power BI embedded works using IFrame. An IFrame is not allowed to read or write data from the external web application or portal, and the communication with the IFrame is done by using the Power BI Client SDK using POST messages.

    Reference:
    Power BI security white paper - Power BI | Microsoft Learn

    Generally Iframe is secure enough, if you still want additional security you can explore more on Azure private link.

    Microsoft also offers Azure Private Link for organizations that require additional network-level security. With Private Link, traffic between users and the Power BI service can travel through Microsoft's private backbone network instead of the public internet, providing enhanced network isolation and secure connectivity through private endpoints.

    Some of the benefits include:

    • Traffic remains on the Azure backbone network when accessing Power BI resources through private endpoints.
    • Improved network isolation from public internet traffic.
    • Support for secure connectivity scenarios involving on-premises environments when used together with technologies such as ExpressRoute or VPN connections.

    For more details, see Private links for secure access to Fabric.

    Power BI security white paper - Power BI | Microsoft Learn

    About private Links for secure access to Fabric - Microsoft Fabric | Microsoft Learn
    If you want to learn how to set up private link, please check this article:
    Set up and use a tenant-level private link - Microsoft Fabric | Microsoft Learn

     

    I hope this helps. Please feel free to reach out if you have any further questions.
    Thank you.

  • DataTako's avatar
    3 months ago

    Short answer: the SameSite finding on app.powerbi.com cookies is a false positive for your CSRF concern, and Front Door / App Gateway isn't needed to fix it.

     

    In App-Owns-Data, access is granted by a short-lived embed token passed to the iframe via the Power BI Client SDK — not by those service cookies. Power BI's APIs use bearer tokens in the Authorization header, not cookies, so they can't be CSRF-forged and the browser won't auto-attach them. The captured cookies are Microsoft's own domain session cookies.

     

    So the real surface is your app's token-generation endpoint: keep CSRF protection on your backend, SameSite+Secure+HttpOnly on your cookies, and Origin/Referer validation. That's the right focus and you've confirmed it's already handled.

     

    Front Door / App Gateway are network/WAF layers; they don't change Microsoft's cookies or add CSRF protection you don't already have. Given per-client hostnames and added cost, I wouldn't add them just for this. Your existing architecture is sufficiently secure for the concern raised.