mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 10:01:10 +00:00
Adds the web track streaming proxy and streaming HTTP client
This commit is contained in:
1 parent
d7c1ae60c2
commit
aab36dcd29
17 files changed
+969
-29
No files matched your search
@@ -100,6 +100,8 @@ public class Program
|
||||
app.UseSession();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
// The rate limiting policies are evaluated after authentication, because the track stream limit is partitioned per authenticated user.
|
||||
app.UseRateLimiter();
|
||||
// validate the antiforgery token after authentication, because the token is bound to the authenticated user and
|
||||
// validating it before the user is known would reject every request made by a logged-in user
|
||||
app.UseAntiforgeryFE(additionalContentTypes: ["application/json"]);
|
||||
|
||||
Reference in new issue
Block a user