Skip to content

Commit

Permalink
apply rate limits after forwarded headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dealloc committed Apr 10, 2024
1 parent b123222 commit f7ba2ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helldivers-2-API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@
// Ensure web applications can access the API by setting CORS headers.
app.UseCors();

// Handles rate limiting so everyone plays nice
app.UseMiddleware<RateLimitMiddleware>();

// Make sure ASP.NET Core uses the correct addresses internally rather than Fly's proxy
app.UseForwardedHeaders();

// Handles rate limiting so everyone plays nice
app.UseMiddleware<RateLimitMiddleware>();

// Add middleware to timeout requests if they take too long.
app.UseRequestTimeouts();

Expand Down

0 comments on commit f7ba2ed

Please sign in to comment.