Blazor WASM Client and Server CORS Error .Net6

Najim 0 Reputation points
2024-07-31T14:00:16.7+00:00

when i use in the Blazor WASM Client the Code

var client=new HttpClient(); var xyz=client.GetAsync(URL);

i got a CORS Error.

when i add an image with the URL i got also the same Error

<img src="@URL" />

I try it also in the API. On Localhost i got my httpclient response. When i upload it on my server i got a timeout Message.

Thank you for your support?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,853 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,578 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.