cors

    [C#] ASP.NET API Cors 전체 허용

    ASP.NET API Cors 허용 UseCors 설정 http, https 허용 # Program.cs var app = builder.Build(); app.UseCors(x => { x.AllowAnyHeader(). AllowAnyMethod(). AllowAnyOrigin(). SetIsOriginAllowed(origin => true). WithOrigins("http://*"). WithOrigins("https://*"). AllowCredentials(); });