So what is the way out to make call to resources from another domain and consume the output?
Answer to above question is Cross-origin resource sharing (CORS).
What is Cross Origin Resource Sharing (CORS)?
CORS is not an authentication mechanism. Any request made against APIs or any resources when CORS is enabled must either have a proper authentication signature, or must be made against a public resource.
CORS Support in Azure Storage Services
Azure Storage blobs, tables, and queues all support CORS to allow for access to the Storage API from the browser. By default, CORS is disabled, but you can explicitly enable it for a specific storage service within your storage account.
How to Enable Azure Storage Services for CORS?
You can set CORS rules individually for each of the storage services, by calling Set Blob Service Properties, Set File Service Properties, Set Queue Service Properties, and Set Table Service Properties. Once you set the CORS rules for the service, then a properly authenticated request made against the service from a different domain will be evaluated to determine whether it is allowed according to the rules you have specified.
There are multiple ways to set the CORS rules for BLOB storage
1. From Azure Portal
2. Using source code
3. Using Tools
Products from Amazon.com
- Price: $43.97Was: $49.99
- Price: Check on Amazon
- Price: $24.56Was: $54.95