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:
@@ -15,10 +15,6 @@ builder.Services.AddCors(options =>
|
|||||||
policy.AllowAnyOrigin()
|
policy.AllowAnyOrigin()
|
||||||
.AllowAnyHeader()
|
.AllowAnyHeader()
|
||||||
.AllowAnyMethod();
|
.AllowAnyMethod();
|
||||||
|
|
||||||
// policy.WithOrigins("http://localhost:5016", "http://:5016", "https://localhost:7252")
|
|
||||||
// .AllowAnyHeader()
|
|
||||||
// .AllowAnyMethod();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
builder.Services.AddDbContext<AppDbContext>(options =>
|
builder.Services.AddDbContext<AppDbContext>(options =>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": false,
|
"launchBrowser": false,
|
||||||
"applicationUrl": "https://localhost:7049;http://localhost:5055",
|
"applicationUrl": "https://+:7049;http://+:5055",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"ApiBaseAddress": "http://localhost:5055"
|
"ApiBaseAddress": "http://10.20.30.99:5055"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user