unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.87k stars 716 forks source link

You must create header add-ons in WebView 2 #18330

Open LiberRuth opened 2 weeks ago

LiberRuth commented 2 weeks ago

What would you like to be added

A certain page is requesting authentication

<WebView2 Headers={Binding Headers} />

Why is this needed

No response

For which platform

No response

Anything else we need to know?

No response

MartinZikmund commented 2 weeks ago

Unfortunately, as we are trying to match the WinUI API surface, we cannot easily add a "custom" attribute, unless a feature is really specific to a platform. If you are able to provide a code snippet on how to adjust headers for a WebView2 control directly in a plain WinUI app, we can look into bringing support for an API into Uno Platform targets as well