Forum Discussion

amirimam's avatar
amirimam
Copper Contributor
Dec 20, 2021

Enable Mixed Content for BlazorWebView in MAUI hybrid

Hi
I want to display an image in my hybrid app from HTTP source. When I tried it, it throws me Mixed Content error, because BlazorWebView is running over HTTPS.
After some search results I found that I can allow it by making 

UsesCleartextTraffic = true

but didn't work
I tried to create a custom renderer for BlazorWebView over android webview, but didn't work because BlazorWeView not a regular webview

 

So I think if you can add some settings in BlazorWebView to customize some features like allowing mixed content it will be very usefull

2 Replies

  • EwenDeng's avatar
    EwenDeng
    Copper Contributor
    What about now?
    https://devblogs.microsoft.com/xamarin/cleartext-http-android-network-security/
    • amirimam's avatar
      amirimam
      Copper Contributor
      Thank you, but the images are still not showing

Resources