Skip to content

Commit

Permalink
Disallow CORS for all origins in production
Browse files Browse the repository at this point in the history
  • Loading branch information
danjov committed Nov 20, 2023
1 parent 0b4dc4c commit 197daba
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 197daba

Please sign in to comment.