Please try using an absolute url such like http(s)://<hostname>/api/employees
instead of relative url api/employees
.
Please note that if the api is located at a cross domain the server of the api must have CORS functionality.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I get the following error while calling an api in my Blazor application:
Following is the code where the error is pointing:
And following is the calling api where request is made:
What went wrong here? Any suggestions?
Thanks,
Puneet Chandiok
Please try using an absolute url such like http(s)://<hostname>/api/employees
instead of relative url api/employees
.
Please note that if the api is located at a cross domain the server of the api must have CORS functionality.