fix dataservice
This commit is contained in:
@@ -42,6 +42,8 @@ namespace ReallifeGamemode.DataService
|
||||
|
||||
services.AddDbContext<DatabaseContext>();
|
||||
|
||||
services.AddCors();
|
||||
|
||||
services.AddLogic();
|
||||
|
||||
services
|
||||
@@ -129,6 +131,13 @@ namespace ReallifeGamemode.DataService
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
||||
app.UseCors(c =>
|
||||
{
|
||||
c.AllowAnyOrigin()
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader();
|
||||
});
|
||||
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
c.RoutePrefix = "doc";
|
||||
|
||||
Reference in New Issue
Block a user