I'm trying to implement Telerik web report designer to blazer .NET MAUI hybrid app, and it keep giving above mentioned error when I try to view the created. report. But I have already add Cors to the app.
{
ReportingEngineConfiguration = sp.GetService<IConfiguration>(),
HostAppId = "newcumstomreportAPI",
Storage = new FileStorage(),
ReportSourceResolver = new UriReportSourceResolver(
Path.Combine(Environment.CurrentDirectory, "Reports"))
});
builder.Services.AddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration
{
DefinitionStorage = new FileDefinitionStorage(Path.Combine(Environment.CurrentDirectory, "Reports")),
SettingsStorage = new FileSettingsStorage(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Telerik Reporting")),
ResourceStorage = new ResourceStorage(Path.Combine(Environment.CurrentDirectory, "Resources"))
});
builder.Services.AddCors();
var app = builder.Build();
app.UseStaticFiles();
//app.UseCors(MyAllowSpecificOrigins);
app.UseCors(builder =>
builder.WithOrigins("*")
.AllowAnyHeader()
.AllowAnyMethod()
);
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
Is it possible to add web report designer to Blazor Hybrid?