ERROR: "Trust anchor for certification path not found" - .NET MAUI

181 Views Asked by At

There are some possible solution.

But I received an error: "resource xml/network_security_config (aka com.companyname.test:xml/network_security_config) not found"

Where do I need to create a config XML file to have access to the Android manifest file?

I just want to linked xml file to the android:networkSecurityConfig in Android manifest.

1

There are 1 best solutions below

1
capdos On BEST ANSWER

If you want to test .NET MAUI app on localhost API and avoid issue for SSL cert, you can use a tool https://ngrok.com/

"ngrok" will put localhost on the internet - it's working for me