webview中的React-Native 302重定向

epe*_*and 5 ssl redirect webview oauth-2.0 react-native

在反应本机中无法使反应本机 oauth2 登录流程正常工作。我在 heroku 上有一个 ssl 服务器处理服务器身份验证,并且身份验证流程在浏览器中运行。然而,在react-native webview中,我认为它会自动遵循重定向。相反,我收到此问题的ssl 错误

我缺少什么吗?在网上找不到任何可以帮助解决此问题的内容。

我只有一个简单的 webview 实现。

import React, { Component } from 'react';
import { WebView } from 'react-native';

export default class SfLogin extends Component {
  constructor(props) {
  super(props);

  this.state = {
     uri: 'https://testendpoint/shouldredirectwhenhit'
  }
}

  render() {
    return (
      <WebView
        javaScriptEnabled={true}
        domStorageEnabled={true}
        source={{uri: this.state.uri}}
        style={{marginTop: 20}}
        scalesPageToFit={true}
      />
    );
  }
}
Run Code Online (Sandbox Code Playgroud)

提前致谢