question

AndreasBolliger-1926 avatar image
0 Votes"
AndreasBolliger-1926 asked AndreasBolliger-1926 answered

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

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

dotnet-aspnet-core-blazor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBolliger-1926 avatar image
0 Votes"
AndreasBolliger-1926 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.