-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
Describe the bug
Attempting to make an http call in blazor client-side, using a url that starts with "/", (e.g. "/api/GetValues") results in:
System.ArgumentException: Only 'http' and 'https' schemes are allowed.
To Reproduce
Steps to reproduce the behavior:
- Using ASP.NET Core 3.0 preview 4
- Create a new blazorhosted project
- Go to FetchData.razor and change the url from
api/SampleData/WeatherForecasts
to/api/SampleData/WeatherForecasts
- Run the app and navigate to
/fetchdata
Screenshots
Eilon and GerritBergen
Metadata
Metadata
Assignees
Labels
ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.