Update configuration for deployment

- Change API base address to external IP for development
- Update launch settings to bind to any host interface
- Remove commented CORS policy code
This commit is contained in:
2026-02-04 21:29:00 +01:00
parent 8f2284e1fc
commit fd8395cc48
3 changed files with 2 additions and 6 deletions

View File

@@ -15,10 +15,6 @@ builder.Services.AddCors(options =>
policy.AllowAnyOrigin()
.AllowAnyHeader()
.AllowAnyMethod();
// policy.WithOrigins("http://localhost:5016", "http://:5016", "https://localhost:7252")
// .AllowAnyHeader()
// .AllowAnyMethod();
});
});
builder.Services.AddDbContext<AppDbContext>(options =>

View File

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

View File

@@ -1,3 +1,3 @@
{
"ApiBaseAddress": "http://localhost:5055"
"ApiBaseAddress": "http://10.20.30.99:5055"
}