haifengkao / YWebView

WKWebview with persistent cookies support
MIT License
104 stars 26 forks source link

Issue 1 - Expand the valid domain comparison #2

Closed wainglaister closed 2 years ago

wainglaister commented 8 years ago

(wildcard cookies)

haifengkao commented 8 years ago

I have removed [YWebView addCookieInScriptWithController:controller] because it will inject all cookies of any domains in HTTPCookieStorage into the current web page. It should happen because of the privacy issues. The difficulty is that we have to inject the cookies before the YWebView is created, but we don't know the domain it will load before it is created. We may be a completely redesign to deal with this issue.