refactor: Projektdateien migriert. Cloud-NuGet-Pakete durch lokale NuGet-Projekte ersetzt.

This commit is contained in:
Developer 02
2024-08-01 18:44:39 +02:00
parent 0d82f7af6f
commit 62ddd4873f
206 changed files with 10927 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
using Microsoft.Extensions.DependencyInjection;
namespace HRD.WebApi.Helpers
{
public static class CorsExtension
{
public static void AddCustomCors(this IServiceCollection services, string policyName)
{
services.AddCors(options =>
{
options.AddPolicy(policyName,
builder =>
{
builder
.AllowCredentials()
//.AllowAnyOrigin()
.SetIsOriginAllowed(origin => true)
.AllowAnyHeader()
.AllowAnyMethod();
});
});
}
}
}