Добавлен .AllowOrigins() в Startup.cs

This commit is contained in:
KharchenkoVV 2021-05-19 16:31:15 +05:00
parent dfdfeff32e
commit 75ea100186

View File

@ -35,8 +35,10 @@ namespace AsbCloudWebApi
{ {
policy.AllowAnyHeader() policy.AllowAnyHeader()
.AllowAnyMethod() .AllowAnyMethod()
.WithOrigins("http://localhost:3000") .AllowAnyOrigin()
.AllowCredentials(); //.WithOrigins("http://localhost:3000")
//.AllowCredentials()
;
}); });
}); });
} }