#VDK2CH-3 пробуем починку
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
7c1c1c6824
commit
764e625631
@ -11,11 +11,13 @@ 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("*");
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user