Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Access to XMLHttpRequest : CORS policy 'Access-Control-Allow-Origin' header blocked

 

Hello

 

I have a CORS problem.

When displaying a report or dashboard, some data is not loaded. For good reason, google Chrome blocks some of my requests to "https://wabi-north-europe-redirect.analysis.windows.net/".

 

The error: 

 

Access to XMLHttpRequest at 'https://wabi-north-europe-redirect.analysis.windows.net/explore/resourcePackageItem/f0bdb215-d26e-40fa-bef0-e2c4165f15080fOca7u5HuiyzvBgC6cELXNS3YUL.28bE.json'
from origin 'https://app.powerbi.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://msit.powerbi.com' that is not equal to the supplied origin.

 


I have an MVC application in ASP.NET. CORS policy is enabled in Access-Control-Allow-Origin = * in ASP.NET and IIS Express.

 

I tried to change the embedded domain from "app.powerbi.com" to "msit.powerbi.com" and I still have the problem.

 

Do you have any ideas to solve the problem?

 

EDIT: I noticed that the problem was only present when the report/dashboard had to load custom configurations (theme, images, etc...)

No Replies