Hi @Bathina Mahesh,
Thanks for the response and providing additional information.
Does Azure support uploading via SAS token( generated using azure sdk for go https://github.com/Azure/azure-sdk-for-go/blob/sdk/storage/azblob/v1.6.0/sdk/storage/azblob/sas/examples_test.go#L31 ) when using a custom domain through Azure Front door?
Yes, Azure supports uploading and downloading via SAS token when using a custom domain through Azure Front door only if the SAS token is correctly generated by using the original Azure blob storage endpoint for example: https://<account>.blob.core.windows.net.
Whenever you are generating SAS token, use the storage account domain instead of custom domain. Example as below:
endpointURL := "https://testwldstorageac.blob.core.windows.net"
So once the SAS token has been generated, replace the domain with the custom domain for accessing the blob.
Also, please make sure that there are proper SAS tokens permissions are provided like Read, Write, Create and Add permissions. Check and correct the expiration time to avoid authentication failures.
Please make sure that the request headers are passed unchanged by configuring Azure Front Door rules which may also modifies headers, causes authentication issues.
For more information, please refer the below document:
Reliable file upload to Azure Storage Blob through Azure Front Door.
Hope this helps!
Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.