Blob Access Control Headers
-
2011年8月21日 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
すべての返信
-
2011年8月21日 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.
- 回答の候補に設定 Joe GiardinoMicrosoft Employee 2011年8月22日 17:26
- 回答としてマーク Wenchao ZengModerator 2011年8月29日 3:03
-
2012年3月26日 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?
-
2013年5月9日 0: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:

