allowedOriginRules property
getter/setter pair
A set of matching rules for the allowed origins.
Adding '*' as an allowed origin or setting this to null, it means it will allow every origin.
Instead, an empty Set will block every origin.
NOTE for Android: each origin pattern MUST follow the table rule of PlatformInAppWebViewController.addWebMessageListener.
NOTE for iOS, macOS, Windows: each origin pattern will be used as a Regular Expression Pattern that will be used on JavaScript side using RegExp.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
Implementation
late Set<String> allowedOriginRules;