- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.6k
Closed
Labels
Description
I noticed warnings in my chrome debug console,
A cookie associated with a cross-site resource at http://xxx.xxx.xxx.xxx/ was set 
without the SameSite attribute. A future release of Chrome will only deliver cookies
 with cross-site requests if they are set with SameSite=None and Secure. You can review 
cookies in developer tools under Application>Storage>Cookies and see more details at 
https://www.chromestatus.com/feature/5088147346030592 and 
https://www.chromestatus.com/feature/5633521622188032.
After some digging by google, I tested
- add cookie header [SameSite=Lax] on server
- run my cordova android application.
- my application does not work for authenticated user, because cookie JSessionId is not sent to server any more. (we send cookie to server from local html file's webview by ajax or xhr)
Actually chrome tell us we should set SameSite=None+Secure for cookie in Chrome 80, and that's a solution precisely. But for some reason, we can not do that. According to Apple's WkWebview Bug 198181 - Cookies with SameSite=None or SameSite=invalid treated as Strict , the fix is only for 10.15 and iOS 13 and later ver, and that means, If we set SameSite=None+Secure on server, our iOS application will not work also for iOS 12 and before ver.
Is there any other simple solution to deal with our situation? any suggestions will be greatly appreciated.
ref: https://textslashplain.com/2019/09/30/same-site-cookies-by-default
sk39, breautek and darrylDgs