I have Blazor web assembly standalone pProject in Visual Studio 2022.
Now when I want to use HttpClient
and fetch some data from some website I get this error:
Access to fetch at ‘https://tapi.bale.ai/someLink/getUpdates’ from origin ‘http://localhost:5246’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
How can I fix this CORS issue, and add header to host it?