У меня есть вызов POST для Azure контейнера хранения (BLOB), который возвращается к следующей ошибке. У меня также есть конфигурация CORS на месте. Ниже приведен метод. Я использую Angular 5 с. net ядро 2.1
private static void ConfigureCors(ServiceProperties serviceProperties)
{
serviceProperties.Cors = new CorsProperties();
serviceProperties.Cors.CorsRules.Add(new CorsRule()
{
AllowedHeaders = new List<string>() { "*" },
AllowedMethods = CorsHttpMethods.Put | CorsHttpMethods.Get | CorsHttpMethods.Head | CorsHttpMethods.Post,
AllowedOrigins = new List<string>() { "*" },
ExposedHeaders = new List<string>() { "*" },
MaxAgeInSeconds = 200
});
}
![CORS error when calling blob contaiter](https://i.stack.imgur.com/hZD1P.png)