Search code examples
azureazure-storageazure-storage-emulator

Windows Azure Storage Emulator - CORS support


I've got the storage emulator running on my local machine - 127.0.0.1:10000. I've got a website running on localhost. However, when I try and do a XMLHttpRequest from the website to the emulator, I get the following error:

Origin http://localhost is not allowed by Access-Control-Allow-Origin.

It works fine if I start Chrome with the --disable-web-security option.

Now, I've read that Azure supports CORS and there's an option somewhere to turn this on. However, I cannot for the life of me figure out where the option is in the Storage Emulator.

Any help would be appreciated!


Solution

  • CORS is still not supported in Windows Azure. It is coming soon though. It was demonstrated in recently concluded //Build/ conference. You can watch that video here: http://channel9.msdn.com/Events/Build/2013/3-541.