Updated circle page. Updated Api to allow any origin.
This commit is contained in:
@@ -52,13 +52,15 @@ 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)
|
||||
)
|
||||
.AllowAnyOrigin()
|
||||
//.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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user