Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Alex3141
Regular Visitor

Azure Map - Reference Layer URL - doesn't display

Hello Power BI community,

I have been searching for hours, but can find out what's wrong. I am trying to display geojson using Azure Map visual, reference layer.

Why does this file display correctly?

https://raw.githubusercontent.com/Azure-Samples/AzureMapsCodeSamples/main/Static/data/geojson/GpsTra...

But this one doesn't?

https://alexander-simon.de/adflkjweiovoijdf/GpsTrace.json

If I use curl to download both files they are identical (according to fc). 

I use Power BI Desktop Version July 2024.

Same issue if I publish (Service version:13.0.23776.64)

If I click on the i Icon in the Header of the visual I get the message: Unable to load reference layer. Unable to parse file.

 

Any ideas?

Thanks a lot

Alex

1 ACCEPTED SOLUTION
Alex3141
Regular Visitor

Just figured it out by enabling PBI diagnostics:

"Access to fetch at 'https://alexander-simon.de/adflkjweiovoijdf/GpsTrace.json' from origin 'https://ms-pbi.pbi.microsoft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."

 

I had to add this to the .htaccess on my web-server:

Header set Access-Control-Allow-Origin "https://ms-pbi.pbi.microsoft.com"

 

 

View solution in original post

1 REPLY 1
Alex3141
Regular Visitor

Just figured it out by enabling PBI diagnostics:

"Access to fetch at 'https://alexander-simon.de/adflkjweiovoijdf/GpsTrace.json' from origin 'https://ms-pbi.pbi.microsoft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."

 

I had to add this to the .htaccess on my web-server:

Header set Access-Control-Allow-Origin "https://ms-pbi.pbi.microsoft.com"

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.