iosWebViewFix/android
Ben Anderson a5be2c59be Allow a cookie without a domain to be set on Android
The other CookieManager implementations in Flutter allow for no domain,
as the Android CookieManager implementation. By providing a default
domain, applications cannot opt-out of the default
CookieManager.setCookie behaviour (which prepends a "period" to the
domain), which is treated as a different domain by Webkit on Android.
This leads to multiple cookies for the same URL if the server serves a
cookie without a domain, or with a domain that does not contain a
leading period.

Note, iOS's setCookie doesn't take a url parameter (at least in the way
it's called from flutter_inappwebview) and instead this is passed an
attribute on the HTTPCookie object itself (originURL). When constructing
a HTTPCookie you must supply either originURL OR domain. Both a
permitted, but at least one must be present. [1]

By making domain optional, without a default, on both platforms,
consumers can now set cookies that don't use the domain attribute but
still allows for setting a domain when required.

[1] https://developer.apple.com/documentation/foundation/httpcookie/1392975-init
2022-08-30 15:29:05 +12:00
..
.idea Updated Android build.gradle version and some androidx properties, fix #371, fix #320 2020-06-03 01:45:58 +02:00
src/main Allow a cookie without a domain to be set on Android 2022-08-30 15:29:05 +12:00
.gitignore updated some .gitignore files, deleted gradle wrapper android plugin directory 2022-04-16 12:17:50 +02:00
build.gradle Added support for Android TWA (Trusted Web Activity) 2022-04-17 21:47:35 +02:00
gradle.properties Updated Android build.gradle version and some androidx properties, fix #371, fix #320 2020-06-03 01:45:58 +02:00
proguard-rules.pro feat: fix proguard 2021-03-22 20:07:27 +08:00
settings.gradle fixed android zoom, added new ios webview options, added 2020-05-09 04:36:07 +02:00