Created
September 12, 2016 15:17
-
-
Save stefangordon/e1047158699f1c7464782e28b860aacf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void SetWildcardCorsOnBlobService(this CloudStorageAccount storageAccount) | |
{ | |
storageAccount.SetCORSPropertiesOnBlobService(cors => | |
{ | |
var wildcardRule = new CorsRule() { AllowedMethods = CorsHttpMethods.Get, AllowedOrigins = { "*" } }; | |
cors.CorsRules.Clear(); | |
cors.CorsRules.Add(wildcardRule); | |
return cors; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment