The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I am trying to render an image through html visuals
html visuals = "
<!DOCTYPE html>
<html lang=""en"">
<head>
<meta charset=""UTF-8"">
<meta http-equiv=""X-UA-Compatible"" content=""IE=edge"">
<meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">
<div id=""htmlContent"">
<div class=""htmlViewerEntry"">
<div>
<script src=https://product-gallery.cloudinary.com/all.js type=""text/javascript"">
</script>
<script type=""text/javascript"">
const myGallery = cloudinary.galleryWidget({
container: ""#my-gallery"",
cloudName: ""cavenders"",
mediaAssets: [{
tag: ""Attributes[Style Code]""
}]
});
myGallery.render();
</script>
<div id=""my-gallery"" style=""max-width:80%;margin:auto"">
</div>
</div>
</div>
</div>
</head>
<body>
</body>
</html>
"
Where in your HTML are you specifying the image that should be rendered?
You may want to try with a simple image viewer visual first.
<script src=https://product-gallery.cloudinary.com/all.js type=""text/javascript"">
</script>
<script type=""text/javascript"">
const myGallery = cloudinary.galleryWidget({
container: ""#my-gallery"",
cloudName: ""cavenders"",
mediaAssets: [{
tag: ""Attributes[Style Code]""
}]
});
myGallery.render();
this is a javascript code in script tag.
Attributes[Style Code] is a column with alphanumeric value like abc111 which should be passed into tag and get image from cloud
Most likely Power BI sees that as a cross site script vulnerability.
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |