# OAuth on Web works but on iOS app's webview gives a security policy error

**URL:** <https://devforum.zoom.us/t/oauth-on-web-works-but-on-ios-apps-webview-gives-a-security-policy-error/76100>\
**Category:** Authentication\
**Created:** [September 17, 2022, 1:01am UTC](https://devforum.zoom.us/t/oauth-on-web-works-but-on-ios-apps-webview-gives-a-security-policy-error/76100 "2022-09-17T01:01:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![appoink](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/appoink/32/43385_2.png) [@appoink](https://devforum.zoom.us/u/appoink)\
**Post date:** [September 17, 2022, 1:01am UTC](https://devforum.zoom.us/t/oauth-on-web-works-but-on-ios-apps-webview-gives-a-security-policy-error/76100/1 "2022-09-17T01:01:24Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
There is no specific endpoint that is giving the issue. It is primarily a bug with Zoom website login inside an iOS or Android app’s webview.

**Description**  
I have a flutter app that is working on the web for integration with Zoom. When I try to login to authenticate for Zoom via the web version of the app, it works seamlessly: [Imgur: The magic of the Internet](https://imgur.com/Ziab0gS)

However when I try to login to authenticate for Zoom via the webview inside the app (in an iOS device for example), I get this weird error: [Imgur: The magic of the Internet](https://imgur.com/7zoHzyp)

**Error?**  
The error message gave this code: 1453805595095095755

Any idea how to bypass this issue? I am using standard flutter webview btw.

My code is as follows:

```auto
WebView(
          initialUrl: url,
          userAgent: 'random',
          javascriptMode: JavascriptMode.unrestricted,
          onPageStarted: (url) {},
)

```

---

<div class="post-metadata">

**Author:** ![appoink](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/appoink/32/43385_2.png) [@appoink](https://devforum.zoom.us/u/appoink)\
**Post date:** [September 20, 2022, 1:51am UTC](https://devforum.zoom.us/t/oauth-on-web-works-but-on-ios-apps-webview-gives-a-security-policy-error/76100/2 "2022-09-20T01:51:31Z")

</div>

Hey so I don’t know why exactly Zoom doesn’t work in iOS or Android webviews made by the traditional Flutter webview (by official Flutter team) but I figured out a workaround to make it work using the Flutter In-App Webview library: [flutter\_inappwebview | Flutter Package](https://pub.dev/packages/flutter_inappwebview). Hope this helps others who may get this issue by trying to use the plain-vanilla Flutter webviews to do oAuth logins with Zoom.

---

<div class="post-metadata">

**Author:** ![vikashyapdrowl](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vikashyapdrowl/32/51971_2.png) [@vikashyapdrowl](https://devforum.zoom.us/u/vikashyapdrowl)\
**Post date:** [August 27, 2024, 5:21pm UTC](https://devforum.zoom.us/t/oauth-on-web-works-but-on-ios-apps-webview-gives-a-security-policy-error/76100/3 "2024-08-27T17:21:05Z")

</div>

How did you go about accomplishing this please @appoink
