React-native-webview: Sending request headers to next redirect

Created on 10 Oct 2019  路  3Comments  路  Source: react-native-webview/react-native-webview


Bug description:
Hi. I am trying to load web page with several redirects according to OAuth logic, while iOS working properly, for Android i see a canceled requests. While debugging request headers each of them i see that for Android i am not sending referrer and other headers. I have tried to remove handling for shouldOverrideUrlLoading and all seem work properly, i see that i can get headers from WebResourceRequest but it is supported only from ANDROID.VERSION.N.
As i can see we forgot all request headers after redirect and load pure one, am i wrong?

To Reproduce:
Load simple webpage with OAuth redirects and see behavior on Android

Expected behavior:
Successfully login and see home page

Screenshots/Videos:

Environment:

  • OS: Android
  • OS version: 28
  • react-native version: 0.60.7
  • react-native-webview version: 7.4.1
Stale bug report

Most helpful comment

Same issue

All 3 comments

Hello 馃憢, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Same issue

@TheMakerOleguch hi there, how did you inspect the request headers going out of the app?
I have tried using fiddler to inspect network traffic but nothing that passes through the webview is logged.

Was this page helpful?
0 / 5 - 0 ratings