Hello,
I'm considering your UI kit to be used in my project, but I'have a problem with the SfPdfViewer component for webAssembly app.
https://blazor.syncfusion.com/documentation/pdfviewer/getting-started/client-side-application/
And the note info : https://www.syncfusion.com/kb/10346/how-to-create-pdf-viewer-web-service-application-in-asp-net-core?_ga=2.76151125.1159554419.1612878611-165318989.1612878611
This is your sample for the load method:
And only this works for me for the same method :
[AcceptVerbs("Post")]
[HttpPost("Load")]
//Post action for Loading the PDF documents
public async System.Threading.Tasks.Task<IActionResult> LoadAsync()
{
string requestBody = await new StreamReader(HttpContext.Request.Body).ReadToEndAsync();
var jsonObject = JsonConvert.DeserializeObject<Dictionary<string,string>>(requestBody);
I send you in attachement a sample project to reproduce
Thanks,
Best regards,
Nicolas
|
app.UseCors(); |