Blob Access Control Headers
-
2011년 8월 21일 일요일 오후 7: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일 일요일 오후 11: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일 월요일 오후 5:26
- 답변으로 표시됨 Wenchao ZengModerator 2011년 8월 29일 월요일 오전 3:03
-
2012년 3월 26일 월요일 오후 3: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일 목요일 오전 12: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:

