Separate cookie jar per WebView in OS X

前端 未结 1 610
广开言路
广开言路 2021-02-03 17:00

I\'ve been trying to achieve the goal of having a unique (not shared) cookie jar per WebView in macOS (cookies management works different for iOS).

After reading a lot o

相关标签:
1条回答
  • 2021-02-03 17:19

    The problem is there are no JS level cookie isolation. document.cookie still point to the shared cookie jar. To implement a true cookie isolated webview, you must override the cookie property of document.

    You may try my implementation: http://cyyuen.github.io/ADCookieIsolatedWebView

    It works for the site using document.cookie to get the cookie such as Dropbox.com. However, the setter is not implemented.

    0 讨论(0)
提交回复
热议问题