Blob Access Control Headers
-
domingo, 21 de agosto de 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
Todas las respuestas
-
domingo, 21 de agosto de 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.
- Propuesto como respuesta Joe GiardinoMicrosoft Employee lunes, 22 de agosto de 2011 17:26
- Marcado como respuesta Wenchao ZengModerator lunes, 29 de agosto de 2011 3:03
-
lunes, 26 de marzo de 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?
-
jueves, 09 de mayo de 2013 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:

