Forum Discussion
HerveB
2 years agoRegular Visitor
using Leaflet in power Bi with pbiviz API 5.3.0
I am trying to configure Leaflet to work with pbiviz but it fails to load the tiles due to CSP policy "Refused to load the image '<URL>' because it violates the following Content Security Policy dire...
HerveB
2 years agoRegular Visitor
After lot of head scratching, I found a workaround that is to set the WebAccess tag in capabilities.json. Though this does not change the img-src tag of the CSP policy and may not be the most secure way to load tiles from an external source. The settings I used are as below:
"privileges": [{
"name": "WebAccess",
"essential": true,
"parameters": [ "https://*.opentopomap.org", "https://*.openstreetmap.org", "https://*.arcgisonline.com", "https://*.stadiamaps.com"]
}]