fix: try disable origins
All checks were successful
.NET Test Pipeline / build-and-test (push) Successful in 3m31s
Build and Deploy Docker Container / build-and-deploy (push) Successful in 3m58s

This commit is contained in:
Polianin Nikita 2024-07-07 23:20:54 +03:00
parent 80b46754ad
commit 3326b17d74

View File

@ -60,9 +60,8 @@ public class Program
{ {
options.AddPolicy("AllowAll", policy => options.AddPolicy("AllowAll", policy =>
{ {
policy.AllowAnyHeader();
policy.AllowAnyMethod(); policy.AllowAnyMethod();
policy.WithOrigins("http://localhost:4200"); policy.AllowAnyHeader();
policy.AllowCredentials(); policy.AllowCredentials();
}); });
}); });