Hi Raymond,
Greetings from Syncfusion support.
We checked the reported requirement. The reported problem may occur because cors not configured server-side application. Can you please check if the configuration below has been added to the application?. If not, then we suggest adding the configuration below to the file Startup.cs.
[Startup.cs]
|
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc(option => option.EnableEndpointRouting = false).SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
services.AddRazorPages();
services.AddCors(options =>
{
options.AddPolicy("AllowAllOrigins", builder =>
{
builder.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader();
});
});
services.AddServerSideBlazor();
services.AddSyncfusionBlazor();
services.AddSingleton<WeatherForecastService>();
}
app.UseRouting();
app.UseCors("AllowAllOrigins");
app.UseMvcWithDefaultRoute();
|
Kindly check the above suggestion and get back to us if you need any other further assistance.
Regards,
Sevvandhi N