Accessing Blob REST API from the browser (javascript / jquery)


  • Hi,

    I am evaluating the feasibility of using the Blob REST API from javascript / jquery running in my browser.

    It seemed as if making simple ajax get / post requests would do but I see some problems like cross site domain ajax restrictions enforced due to Same Origin Policy. I understand that browsers now support Cross-Origin Resource Sharing (CORS) but that to introduces side effects like pre-flighted requests and would probably require support at the servers end as well.

    I am looking to implement a generic solution supporting multiple browsers. I did come across this library ( but I came across the above mentioned issues when using it locally.

    Kindly let me know how I can get this requirement done. Any links or resources will be a great help.



    Friday, March 09, 2012 3:05 PM


  • Hi Danish,

    At the moment it's impossible to set the Access-Control-Allow-Origin header (see Steve's answer here). The only viable option today if you want to work with client side javascript is to implement what you need in the same site you're in. With this is mean:


    Sandrino Di Mattia | Twitter: | Azure Blog: | Blog:

    Friday, March 09, 2012 3:50 PM