.Net 5.0 Webassembly App GetFromJsonAsync producing 401 Unauthorized when accessed via Iphone

Andreas Bolliger 1 Reputation point
2021-10-28T22:15:08.147+00:00

Hello Everyone,
In my .Net 5.0 Webassembly App the GetFromJsonAsync call produces a 401 Unauthorized Exception when accessed via Iphone. It works fine on all windows browsers even on macbook via progressive web installation. Only Iphone does not work. I can login that works fine but I cannot access my WebApi Controller by any nothods that I have via Iphone.
Any help would be greatly appreciated!
Thanks a lot, kind blessings, Andreas

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,382 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,366 Reputation points
    2021-10-29T15:10:05.487+00:00

    You would need to explain what authentication you are using to get help.

    0 comments No comments

  2. Andreas Bolliger 1 Reputation point
    2021-10-29T18:07:33.31+00:00

    Thank you for your answer!

    I use all standard out of the Box .NET 5 Webassembly Project in VS.
    I think it is WebAssembly and IdentityServer4 authentication?

    What I noticed, after I published it again and copied my certificate fresh on the server it worked all of a sudden. Did not change the code.

    Not sure why, was that because of the certificate?
    Thanks! Kind blessings, Andreas

    0 comments No comments