Reputation: 55
When I go to https://myaccount.blob.core.windows.net/mycontainer?restype=container&comp=list assume I have my account information included in the url so that it goes to the Enumeration Results of the Container I have chosen.
Is there any ways I can convert the XML output into something in a html table. I've tried doing this with a simple javascript but this page can not be downloaded as it were and so I can not parse it in this way. I get the following error when trying to do an
xmlhttp.open("GET", "https://myaccount.blob.core.windows.net/mycontainer?restype=container&comp=list", false);
XMLHttpRequest cannot load "THE SAME URL AS ABOVE" No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
Any solutions, or a way of displaying the Enumeration data like a webserver index page.
Upvotes: 0
Views: 111
Reputation: 1378
The problem you are running into relates to a restriction of web browsers that prevents Javascript requests to resources located in domains other than the one in which the parent page is located. In February we added CORS support to the platform which allows you to define CORS (Cross Origin Resource Sharing) policies that can be used to enable such scenarios.
Take a look here for more information Windows Azure Storage: Introducing CORS.
Jason
Upvotes: 0