Skip to content

Commit

Permalink
Disallow CORS for all origins in production (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
danjov authored Nov 20, 2023
2 parents 20ac46f + 197daba commit 80bab34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GeoCop.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@
}
else
{
// Disallow CORS for all origins in production
app.UseCors();

app.UseDefaultFiles();
app.UseStaticFiles();
}
Expand Down

0 comments on commit 80bab34

Please sign in to comment.