#VDK2CH-3 пробуем починку
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Simple_Not 2023-06-30 20:40:58 +10:00
parent 7c1c1c6824
commit 764e625631

View File

@ -11,9 +11,11 @@ builder.Services.AddCors(setup =>
{
setup.AddDefaultPolicy(policyBuilder =>
{
policyBuilder.SetIsOriginAllowed(origin => new Uri(origin).Host == "localhost");
//policyBuilder.WithOrigins("http://www.vdk2ch.ru:4200").WithMethods("GET", "POST").WithHeaders("*");
policyBuilder.WithOrigins("https://www.vdk2ch.ru").WithMethods("GET", "POST").WithHeaders("*");
policyBuilder.WithOrigins("https://www.vdk2ch.ru").WithMethods("GET", "POST").WithHeaders("*");
//policyBuilder.WithOrigins("http://localhost:4200").WithMethods("GET", "POST").WithHeaders("*");
});