My RTE:
<SfRichTextEditor ShowCharCount="true" MaxLength="8000" Placeholder="Enter text(Russian)..." @bind-Value="@_createNewsDto.TextRU">
<RichTextEditorToolbarSettings Items="@Tools"/>
<RichTextEditorQuickToolbarSettings Image="@ImageToolbarItem"/>
@* <RichTextEditorImageSettings AllowedTypes="@_allowedExtensions" SaveUrl="@_saveUrl" Path="./newsMedia/"/> *@
<RichTextEditorImageSettings AllowedTypes="@_allowedExtensions" SaveUrl="@_saveUrl" Path="./newsMedia/"/>
<RichTextEditorEvents OnImageUploadSuccess="UploadImageSuccess" ImageDelete="DeleteImageAfterInsert" OnImageRemoving="DeleteImage"></RichTextEditorEvents>
</SfRichTextEditor>
My HttpClientHandler
public class MyHttpClientHandler : HttpClientHandler
{
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
request.SetBrowserRequestCredentials(BrowserRequestCredentials.Include);
return await base.SendAsync(request, cancellationToken);
}
}
Register HttpClient and Handler
builder.Services.AddScoped(sp => new HttpClient(new MyHttpClientHandler()) { BaseAddress = new Uri("https://localhost:7003") });
When I send the request it does not use my Handler although other requests like httpClient.PostAsync etc. use my Handler and it works with authorization but save image doesn't work