Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I need to get data from url,but get error:
```javascript
Access to XMLHttpRequest at 'https://gallerybox.makeapie.com/asset/get/s/data-1592366734603-Z-iQwIHJk.json' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
```
what's wrong with me?
Solved! Go to Solution.
Hi @luojiandan_bi,
Visuals have their domain removed by the main window so that they are sandboxed. One of the effects of this is that if you're attending to load data from an external URL and this site does not allow requests from an empty domain, they are blocked by your browser. This is a common use case for creators in the HTML Content visual, so I've written up a short overview here. This section and the one below it on CORS are worth understanding if you're developing visuals in Power BI - plus the linked articles that detail it further - as these cannot be overcome through conventional means.
Regards,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
I'm having the same problem did you find a solution?
Hi @luojiandan_bi,
Visuals have their domain removed by the main window so that they are sandboxed. One of the effects of this is that if you're attending to load data from an external URL and this site does not allow requests from an empty domain, they are blocked by your browser. This is a common use case for creators in the HTML Content visual, so I've written up a short overview here. This section and the one below it on CORS are worth understanding if you're developing visuals in Power BI - plus the linked articles that detail it further - as these cannot be overcome through conventional means.
Regards,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)