build: add cors for debugging frontend

This commit is contained in:
Polianin Nikita 2024-10-07 01:42:00 +03:00
parent c5ecf00932
commit de5dc274d7

View File

@ -64,6 +64,9 @@ public class Program
policy.AllowAnyMethod();
policy.AllowAnyHeader();
policy.AllowCredentials();
#if DEBUG
policy.WithOrigins("http://localhost:4200");
#endif
});
});