🐛 Dozens of bug fixes

This commit is contained in:
2025-07-19 17:33:46 +08:00
parent da5b3ac261
commit 3380c8f688
11 changed files with 17 additions and 23 deletions

View File

@@ -8,6 +8,15 @@ builder.Services.AddControllers();
var app = builder.Build();
app.UseCors(opts =>
opts.SetIsOriginAllowed(_ => true)
.WithExposedHeaders("*")
.WithHeaders()
.AllowCredentials()
.AllowAnyHeader()
.AllowAnyMethod()
);
app.MapControllers();
app.MapReverseProxy();

View File

@@ -14,7 +14,7 @@
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": false,
"applicationUrl": "https://localhost:7034;http://localhost:5094",
"applicationUrl": "https://localhost:7034;http://0.0.0.0:5094",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}