To configure Cross-Origin Resource Sharing (CORS) settings for a Storage Account in Azure, follow the steps below:

  • Login to your Microsoft Azure Account and navigate to the "Storage Accounts" section.
  • Locate and click on the desired Storage Account.
  • Look for the "Settings" option and click on it.
  • From the settings menu, choose "Resource Sharing (CORS)".
  • In the "Allowed origins" field, type "https://*.force.com" to allow requests from Salesforce domains.
  • Select "All methods" in the "Allowed methods" dropdown to allow all HTTP methods.
  • Enter "*" in the "Allowed headers" field to allow any headers in the requests.
  • Similarly, enter "*" in the "Exposed headers" field to expose any headers in the responses.
  • Set the "Max age" field to "10000" (or any other desired value) to specify the caching duration in seconds.
  • With these steps, you will have successfully configured the CORS settings for your Storage Account in Azure.


P.S. Discover Azure Integration, the easy way to upload files from any Salesforce record to Azure. Find it on AppExchange: https://appexchange.salesforce.com/appxListingDetail?listingId=c9e71bd6-5bab-4182-a461-b82d4f971183