Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm developing a custom visual for map visualization and encounter the following error:
"Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag."
So is there anyway to add the "allow-same-origin" flag to the iframe that load my visual?
There is good news and bad news.
The bad news is that what you're asking for, adding the "allow-same-origin" permission to sandboxed visuals, has a snowballs chance in hell of happening. It's considered by many to be risky from a security perspective, and Microsoft has to have insane vigilence around security, I can't see them ever doing this.
The good news is there are workarounds for these limitations, one of them might allow you to still meet your goal. I've been wanting to get around to blogging about PBI sandboxing, and developing custom visuals in general, maybe something like Power BI Custom Visuals In-Depth, but you know it's tough to get free time...
What I would suggest in your case is to let us know, why you want to use session storage? What user level requirement is driving it? That way people here can offer suggestions on how to achieve what you need technically while perserving the experience for your end users.
I could use this as well. I receive this error in the console while developing any Custom Visual using Chrome v60.
Power BI Custom Visuals API doesn't allow to use local storage, session storage and cookie due to security aspects.
You might keep a session in Power BI capabilities' properties.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thanks for the reply Sam.
I had spent some time looking into this, but couldn't find any solutions as well.
@muy,
You may keep an eye on Custom Visuals blog for the latest info.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |