You would need to explain what authentication you are using to get help.
.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
2 answers
Sort by: Most helpful
-
-
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