Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// Cross-origin resource requests from these clients are permitted.
string[] _originAllowList = {
"http://localhost:3000",
"http://localhost:5091",
"https://localhost:5091"
};
Expand All @@ -19,7 +20,8 @@
policy.WithOrigins(_originAllowList);
});
});
builder.Services.AddControllers();
builder.Services.AddControllers()
.AddNewtonsoftJson();
builder.Services.AddEndpointsApiExplorer(); // For Swagger/OpenAPI UI (see https://aka.ms/aspnetcore/swashbuckle)
builder.Services.AddSwaggerGen(); // For Swagger/OpenAPI UI

Expand Down