diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewClient.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewClient.ets index 88dbfa966e0e825e365bf607fe4153bbe0670ef2..67333fbc29a731fe3cd9c324edd6eb045656cf76 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewClient.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebViewClient.ets @@ -414,9 +414,7 @@ export default class InAppWebViewClient { } onPermissionRequest = (event: Any) => { if (this.inAppWebView != null && this.inAppWebView.channelDelegate != null) { - this.inAppWebView.channelDelegate.onPermissionRequest(event.request.getOrigin(), - event.request.getAccessibleResource(), null, - new InnerPermissionRequestCallback(event.request)); + event.request.grant(event.request.getAccessibleResource()); } else { event.request.deny(); }