Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dnprock
Frequent Visitor

Custom visual import issue

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:

 

https://github.com/dnprock/PowerBI-visuals/tree/master/src/Clients/CustomVisuals/visuals/colorBarCha...

 

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.

1 REPLY 1
itayrom
Resolver II
Resolver II

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).

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.