I am currently making an application in Blazor Server Side. I am afraid of one thing, in the following component:
<input @bind="Text"/>
@code{
string Text = string.Empty;
}
Say if some attacker were to paste a 1GB string in the input, how could I prevent the payload from reaching the server?
Blazor Server side uses signalR so maybe there is a way that I don't know of to limit the total transfer size