The following error occurred in my web browser when trying to download a file from my Azure Blob Storage:
<Error>
<Code>AccountRequiresHttps</Code>
<Message>
The account being accessed does not support http. RequestId:94de06e3-c01e-000e-4aad-f7c76c000000 Time:2019-04-19T19:18:03.2680382Z
</Message>
<AccountName>storageaccount158</AccountName>
</Error>
This error was unexpected, since I had allowed HTTP at the creation of my blob SAS token and URL:
The solution is quite easy (once you know 😉 ).
You need to enable Insecure transfers in the Confguration of your Storage Account. To do so,
- Go to your Storage Account (top level) in Azure
- Go to Settings – Configuration
- Set “Secure transfer required” to “Disabled“
- Click Save
- Retry to access the URL. The file can now be accessed.
More information about Authorization with SAS can be found here:
https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1
Legend! Thank you. 🙂
You’re very welcome, Andrew! 🙂
really awesome tips here, thank you!
Hi,
I am facing the same issue.
I am programming the upload with the com.microsoft.azure.storage package.
Your fix does work for me as well.
I was just thinking about the security implications as we are storing sensitive data in the company Blob.
Thanks and regards,
Philip