flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

Not all headers are obtained when intercepting a resource

Open jpolstre opened this issue 6 months ago • 1 comments

  • [x] I have read the Getting Started section
  • [x] I have already searched for the same problem

Environment

Technology Version
Flutter version 3.22.3
Plugin version 6.0.0
Android version 34.0.0

Device information: Pixel 8 Pro

Description

Not all headers are obtained when intercepting a resource Expected behavior: all headers are obtained, including "Accept-Language" Current behavior: When I intercept a resource and get the headers, not all headers are obtained, like: "Accept-Language", however when I use a browser based on Chromium (Android App), all headers are obtained, including "Accept-Language"

Steps to reproduce

shouldInterceptRequest: (InAppWebViewController controller, WebResourceRequest wResource) async { wResource.toString();

log('headers-->${wResource.headers}');//not all headers are obtained } Using a Chromium-based browser (Android app, for example Kiwi Browser), all headers are obtained, including "Accept-Language".

jpolstre avatar Jul 27 '24 17:07 jpolstre