Forum Discussion
CORS error when viewing Published PowerBI Report
- 9 years ago
Thanks for that clarification. I can verify that the url can be accessed from China and USA.
As I don't have much knowledge on CDN, I'd suggest you submit that issue and ask MS for support.
I don't get that error when load the published url in a brower, could you try this url?
The eg url is truncated, please post the completed one so that I can test and try to reproduce the error.
- rpalexf9 years agoRegular Visitor
Thanks for the reponse.
I just tried your url in my browser and I get a CORS error in your URL.
Failed to load resource: the server responded with a status of 404 (Resource Not Found)
XMLHttpRequest cannot load https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://msit.powerbi.com' is therefore not allowed access. The response had HTTP status code 404.
Failed to load resource: the server responded with a status of 404 (Resource Not Found)
XMLHttpRequest cannot load https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://msit.powerbi.com' is therefore not allowed access. The response had HTTP status code 404.
Failed to load resource: the server responded with a status of 404 (Resource Not Found)I work in Australia, so maybe the CDN where the JS is hosted is not a trusted site for the .com domain.
But I cant be sure.
I also tested your URL in Edge and have the same issue.
Here is the stack track from Chrome;
ai.0.js:1 OPTIONS https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models XMLHttpRequest.send @ ai.0.js:1(anonymous function) @ powerbiportal.dependencies.bundle.min.js:115n @ powerbiportal.dependencies.bundle.min.js:111(anonymous function) @ powerbiportal.dependencies.bundle.min.js:108(anonymous function) @ powerbiportal.dependencies.bundle.min.js:143$eval @ powerbiportal.dependencies.bundle.min.js:157$digest @ powerbiportal.dependencies.bundle.min.js:154$apply @ powerbiportal.dependencies.bundle.min.js:158(anonymous function) @ powerbiportal.dependencies.bundle.min.js:171e @ powerbiportal.dependencies.bundle.min.js:57(anonymous function) @ powerbiportal.dependencies.bundle.min.js:60
view?r=eyJrIjoiNzAyMThlZGMtOTc4NS00YWM1LTkwOWYtYjYyNzVkZjdkODg2IiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05…:1 XMLHttpRequest cannot load https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://msit.powerbi.com' is therefore not allowed access. The response had HTTP status code 404.Is there anything else I can try here?
Thanks again for your time,
Alex
- Eric_Zhang9 years agoMicrosoft Employee
Thanks for that clarification. I can verify that the url can be accessed from China and USA.
As I don't have much knowledge on CDN, I'd suggest you submit that issue and ask MS for support.