Skip to content

Commit

Permalink
Fix crash on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Nov 20, 2023
1 parent 2a45024 commit 473d8e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/SensorServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
builder.Services.AddEntityFrameworkSqlite();
builder.Services.AddDbContext<MeasurementsRepository>();

builder.Services.AddCors(options => { options.AddDefaultPolicy(policy => policy.WithOrigins("*")); });
builder.Services.AddHttpLogging(_ => {});

builder.Services.AddCors(options =>
{
options.AddDefaultPolicy(policy => policy.WithOrigins("*"));
});

builder.Services
.AddAuthentication("Bearer")
Expand Down

0 comments on commit 473d8e7

Please sign in to comment.