Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
I'm creating a custom visual to read color from data. I followed the code guideline on github and tested it in visual playground. The source code is here:
I run 'gulp package' to create release for it. When I import to Power BI web, I get the following error:
"Uncaught SecurityError: Failed to set the 'cookie' property on 'Document': The document is sandboxed and lacks the 'allow-same-origin' flag."
Any idea what I might have missed in my package?
Thanks.
You did nothing wrong here. This message pops when using custom visuals in your reports ever since the custom visuals sandboxing feature was introduced. It even pops when importing only the DevTools sample "YourVisual" visual to the report. The only exceptions are custom visuals from the official gallery, since they are reviewed by Microsoft and are therefore not sandboxed.
So if your visual is not functioning properly, this message is not an indication of what's causing it(But don't rule out the sandboxing feature itself as the cause).
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |