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()
|
||||
.AllowAnyHeader()
|
||||
.AllowAnyMethod();
|
||||
|
||||
// policy.WithOrigins("http://localhost:5016", "http://:5016", "https://localhost:7252")
|
||||
// .AllowAnyHeader()
|
||||
// .AllowAnyMethod();
|
||||
});
|
||||
});
|
||||
builder.Services.AddDbContext<AppDbContext>(options =>
|
||||
|
||||
Reference in New Issue
Block a user