Added Blazor projects. Minor API/core updates.
This commit is contained in:
@@ -49,7 +49,22 @@ Log.Logger = new LoggerConfiguration()
|
||||
.CreateLogger();
|
||||
builder.Host.UseSerilog();
|
||||
|
||||
builder.Services.AddCors(o =>
|
||||
{
|
||||
o.AddPolicy("ui-dev", p => p
|
||||
.WithOrigins(
|
||||
"https://localhost:5173", // vite-like
|
||||
"https://localhost:5001", // typical https dev
|
||||
"http://localhost:5000", // typical http dev
|
||||
"https://localhost:7112", // blazor wasm dev https (adjust to your port)
|
||||
"http://localhost:5153" // blazor wasm dev http (adjust to your port)
|
||||
)
|
||||
.AllowAnyHeader()
|
||||
.AllowAnyMethod());
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
app.UseCors("ui-dev");
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
|
||||
Reference in New Issue
Block a user