I am using blazor server side application. In that I need to refer local dataSource.
I have used the Http as like default client side sample.
@code{
ChartData[] dataSource;
protected override async Task OnInitAsync()
{
dataSource = await Http.GetJsonAsync<ChartData[]>("scripts/aapl.json");
}
}
But I have been facing the issue like below,

Can anyone guide me to fix this?