Blob Access Control Headers
-
domenica 21 agosto 2011 19:03
According to an answer on SO by Steve Marx it is currently not possible to specifiy access control headers for Blobs in order to make them accessible to cross domain downloads by Ajax clients. Are there any concrete plans to add this mid- to near-term? Unless I'm mistaken everyone who needs to access his blobs through XMLHttpRequest will need to funnel all requests trough a custom HttpHandler hosted in a WebRole in order to add those headers. Which can't be the way.
To make it clearer I'm referring to this header: Access-Control-Allow-Origin: *
weichhold.com
Tutte le risposte
-
domenica 21 agosto 2011 23:02
I'm checking, but I don't think there are any concrete plans to add this. I suggest you add an entry on http://www.mygreatwindowsazureidea.com so people can vote for this feature. I don't see this there yet. (We regularly use that list as part of our planning process.)
An alternative to proxying requests through a web server is to use JSONP. Encode the blobs like "callback({...});" and then dynamically add a <script> tag. (You can use jQuery to do this.) This is how the Windows Azure Toolkit for Social Games (http://watgames.codeplex.com/) does its polling.
- Proposto come risposta Joe GiardinoMicrosoft Employee lunedì 22 agosto 2011 17:26
- Contrassegnato come risposta Wenchao ZengModerator lunedì 29 agosto 2011 03:03
-
lunedì 26 marzo 2012 15:04Almost a year later and lots of changes to Azure, but is it still true that there is no way to add the 'Access-Control-Allow-Origin' header to blobs?
-
giovedì 9 maggio 2013 00:20
Almost a year later and lots of changes to Azure, but is it still true that there is no way to add the 'Access-Control-Allow-Origin' header to blobs?
More than two years now, is entry on:

