fluttercommunity / fluttercommunity/flutter_webview_plugin

session cookie for cross domain websites

オープン
#887 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
1.5k
フォーク
938
PR マージ指標
30日以内にマージされた PR はありません

説明

By getting the cookie through js, most websites will do cross-domain security processing, so it is basically impossible to get the value of the session, it makes no sense.

Changing the cookie method to the following implementation addresses this issue.

`void getAllCookies(MethodCall call, final MethodChannel.Result result){
String url = call.argument("url");
CookieManager cookieManager = CookieManager.getInstance();
String cookieStr = cookieManager.getCookie(url);
result.success(cookieStr);
}`

Currently making the change locally, will be great to have the fix built into the plugin. See this [article](https://www.programmersought.com/article/4084745977/) for a detailed implementation for iOS and Android.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

ネイティブの getAllCookies エントリーポイントから始め、プラグインが現在 JavaScript を介して Cookie をどのように取得しているかを調査します。要求されている CookieManager.getCookie(url) のアプローチを、記事にある iOS および Android の実装詳細と比較します。要求されたクロスドメイン URL のセッション Cookie を、プラグインのネイティブ実装を介して取得できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
flutter, java
領域
mobile-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。