Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebViewScaffold seems to ignore provided headers #395

Open
asacic opened this issue Apr 21, 2019 · 2 comments
Open

WebViewScaffold seems to ignore provided headers #395

asacic opened this issue Apr 21, 2019 · 2 comments

Comments

@asacic
Copy link

asacic commented Apr 21, 2019

Hi,

when calling a URL and placing a cookie header in the webview scaffold, the request does not seem to pick up the provided header.
using: flutter_webview_plugin: ^0.3.4

@override
  Widget build(BuildContext context) {
    return WebviewScaffold (
        url: this.url,
        headers: {'Cookie:' : this.cookie},
        appBar: AppBar(
            title: Text('Inhalt', style: TextStyle(color: Colors.white)),
            centerTitle: true,
            backgroundColor: Colors.lightGreen,
        ),
    );
  }

When i am setting up a classic http.get command it works perfectly fine.

var headers = {'Cookie': this.cookie};
  final response = await http.get(
      'https://someurl.com',
      headers: headers);

So the cookie seems to be fine, the header declaration also.
I could not find a more comprehensive documentation on this. Maybe I am missing something.

Thanks!

@joelbrostrom
Copy link

Same issue,
any luck?

@shun5nktm
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants