Showing results for 
Search instead for 
Did you mean: 
Regular Visitor


I need to get data from url,but get error:


Access to XMLHttpRequest at '' 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?

Super User I
Super User I

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.



Did I answer your question? Mark my post as a solution!

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)

Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors