javaScriptHandlersOriginAllowList property
getter/setter pair
A Set of Regular Expression Patterns that will be used on native side to match the allowed origins that are able to execute the JavaScript Handlers defined for the current WebView. This will affect also the internal JavaScript Handlers used by the plugin itself.
An empty Set will block every origin.
The default value is null and will allow every origin.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Web <iframe> but requires same origin
Implementation
Set<String>? javaScriptHandlersOriginAllowList;