titanium-web-proxy icon indicating copy to clipboard operation
titanium-web-proxy copied to clipboard

"Setting system proxy settings are only supported in Windows" while in Windows MAUI App

Open ricardoboss opened this issue 2 years ago • 5 comments

Getting "Setting system proxy settings are only supported in Windows. Please manually configure you operating system to use this proxy's port and address." in MAUI (.NET 7) on Windows.

ricardoboss avatar Nov 09 '22 11:11 ricardoboss

I had the same problem. I am using Titanium from Powershell. After upgrading from Powershell 7.2.7 (.Net 6) to Powershell 7.3 (.NET 7) my script stopped working

ms777 avatar Nov 22 '22 18:11 ms777

For Maui this is because IsRunningAsUwp returns true

Eonasdan avatar Jan 21 '23 15:01 Eonasdan

MAUI is apparently sandboxe like UWP. If I comment out the check for uwp, maui does set the "registry", sort of. It sets the sandbox register. The maui app is then proxied through titanium but not outside requests (e.g. Chrome). The solution would be to either have a full trust companion (console app) that could adjust the system proxy or if you're just using Maui for the Blazor option then I'd ditch Maui for WPF + Blazor.

If you're interested in getting wpf + blazor to work let me know and I can pass on some additional info.

Eonasdan avatar Jan 22 '23 15:01 Eonasdan

So, in short, you're saying Titanium Proxy cannot run in MAUI apps on Windows?

ricardoboss avatar Jan 22 '23 15:01 ricardoboss

It can but you'd have to set the registry values yourself and fork the code to by-pass the UWP check.

Eonasdan avatar Jan 22 '23 18:01 Eonasdan